Index: base/files/file_util_proxy.cc |
diff --git a/base/files/file_util_proxy.cc b/base/files/file_util_proxy.cc |
index 633d162599c67a0cfe27cf84db37a05ab0321663..54a56610630ec77d93d5e9d1635baa9c8f893b53 100644 |
--- a/base/files/file_util_proxy.cc |
+++ b/base/files/file_util_proxy.cc |
@@ -48,19 +48,6 @@ class GetFileInfoHelper { |
DISALLOW_COPY_AND_ASSIGN(GetFileInfoHelper); |
}; |
-File::Error DeleteAdapter(const FilePath& file_path, bool recursive) { |
- if (!PathExists(file_path)) { |
- return File::FILE_ERROR_NOT_FOUND; |
- } |
- if (!base::DeleteFile(file_path, recursive)) { |
- if (!recursive && !base::IsDirectoryEmpty(file_path)) { |
- return File::FILE_ERROR_NOT_EMPTY; |
- } |
- return File::FILE_ERROR_FAILED; |
- } |
- return File::FILE_OK; |
-} |
- |
} // namespace |
// Retrieves the information about a file. It is invalid to pass NULL for the |
@@ -78,17 +65,6 @@ bool FileUtilProxy::GetFileInfo( |
} |
// static |
-bool FileUtilProxy::DeleteFile(TaskRunner* task_runner, |
- const FilePath& file_path, |
- bool recursive, |
- const StatusCallback& callback) { |
- return base::PostTaskAndReplyWithResult( |
- task_runner, FROM_HERE, |
- Bind(&DeleteAdapter, file_path, recursive), |
- callback); |
-} |
- |
-// static |
bool FileUtilProxy::Touch( |
TaskRunner* task_runner, |
const FilePath& file_path, |