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

Unified Diff: webrtc/base/fileutils.h

Issue 2747373003: Delete FilesystemInterface::CopyFile. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | webrtc/base/unixfilesystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/fileutils.h
diff --git a/webrtc/base/fileutils.h b/webrtc/base/fileutils.h
index 8f6ec521b2f5c566bcf50373adc5f88849470024..9847a7b237a114fc2a002847877bb5c13a5391ab 100644
--- a/webrtc/base/fileutils.h
+++ b/webrtc/base/fileutils.h
@@ -118,15 +118,8 @@ class FilesystemInterface {
// This moves a file from old_path to new_path, where "old_path" is a
// plain file. This DCHECKs and returns false if old_path points to a
// directory, and returns true if the function succeeds.
- // If the new path is on a different volume than the old path, this function
- // will attempt to copy and, if that succeeds, delete the old path.
virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
- // This copies a file from old_path to new_path. This method DCHECKs and
- // returns false if old_path is a folder, and returns true if the copy
- // succeeds.
- virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
-
// Returns true if pathname refers to a directory
virtual bool IsFolder(const Pathname& pathname) = 0;
@@ -230,10 +223,6 @@ class Filesystem {
return EnsureDefaultFilesystem()->MoveFile(old_path, new_path);
}
- static bool CopyFile(const Pathname &old_path, const Pathname &new_path) {
- return EnsureDefaultFilesystem()->CopyFile(old_path, new_path);
- }
-
static bool IsFolder(const Pathname& pathname) {
return EnsureDefaultFilesystem()->IsFolder(pathname);
}
« no previous file with comments | « no previous file | webrtc/base/unixfilesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698