Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: webrtc/base/unixfilesystem.cc

Issue 2930023002: Delete unused method FilesystemInterface::DeleteEmptyFolder. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/unixfilesystem.h ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/unixfilesystem.cc
diff --git a/webrtc/base/unixfilesystem.cc b/webrtc/base/unixfilesystem.cc
index bfecf1a6a0b79bcc8fcbaed6d316fff9a091d3a1..d106bbd933c64ebc57bab29bb187b79ada5bec78 100644
--- a/webrtc/base/unixfilesystem.cc
+++ b/webrtc/base/unixfilesystem.cc
@@ -133,17 +133,6 @@ bool UnixFilesystem::DeleteFile(const Pathname &filename) {
return ::unlink(filename.pathname().c_str()) == 0;
}
-bool UnixFilesystem::DeleteEmptyFolder(const Pathname &folder) {
- LOG(LS_INFO) << "Deleting folder" << folder.pathname();
-
- if (!IsFolder(folder)) {
- RTC_DCHECK(IsFolder(folder));
- return false;
- }
- std::string no_slash(folder.pathname(), 0, folder.pathname().length()-1);
- return ::rmdir(no_slash.c_str()) == 0;
-}
-
bool UnixFilesystem::GetTemporaryFolder(Pathname &pathname, bool create,
const std::string *append) {
#if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC)
« no previous file with comments | « webrtc/base/unixfilesystem.h ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698