Index: webrtc/base/fileutils.cc |
diff --git a/webrtc/base/fileutils.cc b/webrtc/base/fileutils.cc |
index ac21c18bcdaa8c4206b31a23cb286d1f2b3354c3..a047918901e440818aafb04d1534eaed26c1d738 100644 |
--- a/webrtc/base/fileutils.cc |
+++ b/webrtc/base/fileutils.cc |
@@ -134,37 +134,4 @@ DirectoryIterator* FilesystemInterface::IterateDirectory() { |
return new DirectoryIterator(); |
} |
-bool FilesystemInterface::DeleteFolderContents(const Pathname &folder) { |
- bool success = true; |
- RTC_CHECK(IsFolder(folder)); |
- DirectoryIterator *di = IterateDirectory(); |
- if (!di) |
- return false; |
- if (di->Iterate(folder)) { |
- do { |
- if (di->Name() == "." || di->Name() == "..") |
- continue; |
- Pathname subdir; |
- subdir.SetFolder(folder.pathname()); |
- if (di->IsDirectory()) { |
- subdir.AppendFolder(di->Name()); |
- if (!DeleteFolderAndContents(subdir)) { |
- success = false; |
- } |
- } else { |
- subdir.SetFilename(di->Name()); |
- if (!DeleteFile(subdir)) { |
- success = false; |
- } |
- } |
- } while (di->Next()); |
- } |
- delete di; |
- return success; |
-} |
- |
-bool FilesystemInterface::DeleteFolderAndContents(const Pathname& folder) { |
- return DeleteFolderContents(folder) && DeleteEmptyFolder(folder); |
-} |
- |
} // namespace rtc |