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

Unified Diff: webrtc/base/fileutils.h

Issue 2699143002: Delete unused Filesystem methods GetAppDataFolder and GetDiskFreeSpace. (Closed)
Patch Set: Created 3 years, 10 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/fileutils_unittest.cc » ('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 14d7091e475c5c83e6039060a74d6f96444a0161..d70ec89acf849f37c78b4a7dbd638a632f5a0367 100644
--- a/webrtc/base/fileutils.h
+++ b/webrtc/base/fileutils.h
@@ -155,19 +155,12 @@ class FilesystemInterface {
virtual bool GetFileTime(const Pathname& path, FileTimeType which,
time_t* time) = 0;
- // Get a folder that is unique to the current application, which is suitable
- // for sharing data between executions of the app. If the per_user arg is
- // true, the folder is also specific to the current user.
- virtual bool GetAppDataFolder(Pathname* path, bool per_user) = 0;
-
// Get a temporary folder that is unique to the current user and application.
// TODO: Re-evaluate the goals of this function. We probably just need any
// directory that won't collide with another existing directory, and which
// will be cleaned up when the program exits.
virtual bool GetAppTempFolder(Pathname* path) = 0;
- virtual bool GetDiskFreeSpace(const Pathname& path, int64_t* freebytes) = 0;
-
// Note: These might go into some shared config section later, but they're
// used by some methods in this interface, so we're leaving them here for now.
void SetOrganizationName(const std::string& organization) {
@@ -276,18 +269,10 @@ class Filesystem {
return EnsureDefaultFilesystem()->GetFileTime(path, which, time);
}
- static bool GetAppDataFolder(Pathname* path, bool per_user) {
- return EnsureDefaultFilesystem()->GetAppDataFolder(path, per_user);
- }
-
static bool GetAppTempFolder(Pathname* path) {
return EnsureDefaultFilesystem()->GetAppTempFolder(path);
}
- static bool GetDiskFreeSpace(const Pathname& path, int64_t* freebytes) {
- return EnsureDefaultFilesystem()->GetDiskFreeSpace(path, freebytes);
- }
-
static void SetOrganizationName(const std::string& organization) {
EnsureDefaultFilesystem()->SetOrganizationName(organization);
}
« no previous file with comments | « no previous file | webrtc/base/fileutils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698