Index: webrtc/rtc_base/unixfilesystem.cc |
diff --git a/webrtc/rtc_base/unixfilesystem.cc b/webrtc/rtc_base/unixfilesystem.cc |
index ebf20c7c99fc8f8f1e59c2388f8a3c5989f2bc0b..1251ebd01fd72d8d96b5af68021010265cb8a0f9 100644 |
--- a/webrtc/rtc_base/unixfilesystem.cc |
+++ b/webrtc/rtc_base/unixfilesystem.cc |
@@ -73,15 +73,6 @@ bool UnixFilesystem::CreateFolder(const Pathname &path, mode_t mode) { |
return false; |
} |
- // Directory doesn't exist, look up one directory level |
- do { |
- --len; |
- } while ((len > 0) && (pathname[len - 1] != '/')); |
- |
- if (!CreateFolder(Pathname(pathname.substr(0, len)), mode)) { |
- return false; |
- } |
- |
LOG(LS_INFO) << "Creating folder: " << pathname; |
return (0 == ::mkdir(pathname.c_str(), mode)); |
} |