diff options
| author | 2018-11-22 06:16:26 -0800 | |
|---|---|---|
| committer | 2018-11-22 06:16:26 -0800 | |
| commit | 5964d5a460ed2da0c82265405bb314a0f24ecb9e (patch) | |
| tree | d8357979d469d3e487779a7056a503a75c06feec /cmds/dumpstate/dumpstate.cpp | |
| parent | a27923446e61a6d80da98b741fc00d6f1ac76e3f (diff) | |
| parent | ebad92540553de4f991064548724725bb7e3b87c (diff) | |
Merge "Remove unused rename code"
am: ebad925405
Change-Id: Ia2a818ea8377bb02199c62eb8fda9cc6b8ae6f35
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 94e88775e1..026c260818 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1100,7 +1100,7 @@ static void RunDumpsysProto(const std::string& title, int priority, } } -// Runs dumpsys on services that must dump first and and will take less than 100ms to dump. +// Runs dumpsys on services that must dump first and will take less than 100ms to dump. static void RunDumpsysCritical() { RunDumpsysText("DUMPSYS CRITICAL", IServiceManager::DUMP_FLAG_PRIORITY_CRITICAL, /* timeout= */ 5s, /* service_timeout= */ 500ms); @@ -1858,17 +1858,6 @@ static void FinalizeFile() { do_text_file = true; } else { do_text_file = false; - // Since zip file is already created, it needs to be renamed. - std::string new_path = ds.GetPath(".zip"); - if (ds.path_ != new_path) { - MYLOGD("Renaming zip file from %s to %s\n", ds.path_.c_str(), new_path.c_str()); - if (rename(ds.path_.c_str(), new_path.c_str())) { - MYLOGE("rename(%s, %s): %s\n", ds.path_.c_str(), new_path.c_str(), - strerror(errno)); - } else { - ds.path_ = new_path; - } - } } } if (do_text_file) { |