From 4b3a8be0b9db448971e6095a24501c66714c484f Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Wed, 1 Jun 2016 12:08:47 +0600 Subject: CLOUD: Shorten Cloud API touch() and isSyncing() are not needed. remove() is not needed too, but it could be used in the future. --- backends/cloud/dropbox/dropboxstorage.h | 6 ------ backends/cloud/onedrive/onedrivestorage.h | 6 ------ backends/cloud/storage.h | 6 ------ 3 files changed, 18 deletions(-) diff --git a/backends/cloud/dropbox/dropboxstorage.h b/backends/cloud/dropbox/dropboxstorage.h index 2f57b052b2..2c60097701 100644 --- a/backends/cloud/dropbox/dropboxstorage.h +++ b/backends/cloud/dropbox/dropboxstorage.h @@ -82,9 +82,6 @@ public: /** Calls the callback when finished. */ virtual Networking::Request *createDirectory(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback); - /** Calls the callback when finished. */ - virtual Networking::Request *touch(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback) { return nullptr; } //TODO - /** Returns the StorageInfo struct. */ virtual Networking::Request *info(StorageInfoCallback callback, Networking::ErrorCallback errorCallback); @@ -94,9 +91,6 @@ public: /** Returns storage's saves directory path with the trailing slash. */ virtual Common::String savesDirectoryPath(); - /** Returns whether saves sync process is running. */ - virtual bool isSyncing() { return false; } //TODO - /** Returns whether there are any requests running. */ virtual bool isWorking() { return false; } //TODO diff --git a/backends/cloud/onedrive/onedrivestorage.h b/backends/cloud/onedrive/onedrivestorage.h index 8fc7b2ac4d..5edd96e59c 100644 --- a/backends/cloud/onedrive/onedrivestorage.h +++ b/backends/cloud/onedrive/onedrivestorage.h @@ -92,18 +92,12 @@ public: /** Calls the callback when finished. */ virtual Networking::Request *createDirectory(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback); - /** Calls the callback when finished. */ - virtual Networking::Request *touch(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback) { return nullptr; } //TODO - /** Returns the StorageInfo struct. */ virtual Networking::Request *info(StorageInfoCallback callback, Networking::ErrorCallback errorCallback); /** Returns storage's saves directory path with the trailing slash. */ virtual Common::String savesDirectoryPath(); - /** Returns whether saves sync process is running. */ - virtual bool isSyncing() { return false; } //TODO - /** Returns whether there are any requests running. */ virtual bool isWorking() { return false; } //TODO diff --git a/backends/cloud/storage.h b/backends/cloud/storage.h index 4956d5f617..1efee85bb3 100644 --- a/backends/cloud/storage.h +++ b/backends/cloud/storage.h @@ -106,18 +106,12 @@ public: /** Calls the callback when finished. */ virtual Networking::Request *createDirectory(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback) = 0; - /** Calls the callback when finished. */ - virtual Networking::Request *touch(Common::String path, BoolCallback callback, Networking::ErrorCallback errorCallback) = 0; - /** Returns the StorageInfo struct. */ virtual Networking::Request *info(StorageInfoCallback callback, Networking::ErrorCallback errorCallback) = 0; /** Returns storage's saves directory path with the trailing slash. */ virtual Common::String savesDirectoryPath() = 0; - /** Returns whether saves sync process is running. */ - virtual bool isSyncing() = 0; - /** Returns whether there are any requests running. */ virtual bool isWorking() = 0; }; -- cgit v1.2.3