aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/dropbox
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-14 09:19:12 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitb4e9e35e07538a118588742aff6fd4a7a2b4d600 (patch)
treef332710318f4880baf8fc7f58902caca3314d77d /backends/cloud/dropbox
parent0b5bd18d8525e16749ad422913800b2120021240 (diff)
downloadscummvm-rg350-b4e9e35e07538a118588742aff6fd4a7a2b4d600.tar.gz
scummvm-rg350-b4e9e35e07538a118588742aff6fd4a7a2b4d600.tar.bz2
scummvm-rg350-b4e9e35e07538a118588742aff6fd4a7a2b4d600.zip
CLOUD: Cleanup in Storages
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r--backends/cloud/dropbox/dropboxstorage.cpp27
-rw-r--r--backends/cloud/dropbox/dropboxstorage.h9
2 files changed, 0 insertions, 36 deletions
diff --git a/backends/cloud/dropbox/dropboxstorage.cpp b/backends/cloud/dropbox/dropboxstorage.cpp
index 6d73e52c43..8343b74aa0 100644
--- a/backends/cloud/dropbox/dropboxstorage.cpp
+++ b/backends/cloud/dropbox/dropboxstorage.cpp
@@ -105,24 +105,6 @@ Common::String DropboxStorage::name() const {
return "Dropbox";
}
-void DropboxStorage::printFiles(FileArrayResponse response) {
- debug("files:");
- Common::Array<StorageFile> &files = response.value;
- for (uint32 i = 0; i < files.size(); ++i)
- debug("\t%s", files[i].name().c_str());
-}
-
-void DropboxStorage::printBool(BoolResponse response) {
- debug("bool: %s", (response.value?"true":"false"));
-}
-
-void DropboxStorage::printStorageFile(UploadResponse response) {
- debug("\nuploaded file info:");
- debug("\tpath: %s", response.value.path().c_str());
- debug("\tsize: %u", response.value.size());
- debug("\ttimestamp: %u", response.value.timestamp());
-}
-
Networking::Request *DropboxStorage::listDirectory(Common::String path, ListDirectoryCallback outerCallback, Networking::ErrorCallback errorCallback, bool recursive) {
return addRequest(new DropboxListDirectoryRequest(_token, path, outerCallback, errorCallback, recursive));
}
@@ -218,14 +200,5 @@ DropboxStorage *DropboxStorage::loadFromConfig(Common::String keyPrefix) {
return new DropboxStorage(accessToken, userId);
}
-Common::String DropboxStorage::getAuthLink() {
- Common::String url = "https://www.dropbox.com/1/oauth2/authorize";
- url += "?response_type=code";
- url += "&redirect_uri=http://localhost:12345/"; //that's for copy-pasting
- //url += "&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F"; //that's "http://localhost:12345/" for automatic opening
- url += "&client_id="; url += KEY;
- return url;
-}
-
} // End of namespace Dropbox
} // End of namespace Cloud
diff --git a/backends/cloud/dropbox/dropboxstorage.h b/backends/cloud/dropbox/dropboxstorage.h
index d256e0562b..b3dc64139c 100644
--- a/backends/cloud/dropbox/dropboxstorage.h
+++ b/backends/cloud/dropbox/dropboxstorage.h
@@ -46,10 +46,6 @@ class DropboxStorage: public Cloud::Storage {
/** Constructs StorageInfo based on JSON response from cloud. */
void infoInnerCallback(StorageInfoCallback outerCallback, Networking::JsonResponse json);
- void printFiles(FileArrayResponse response);
- void printBool(BoolResponse response);
- void printStorageFile(UploadResponse response);
-
public:
/** This constructor uses OAuth code flow to get tokens. */
DropboxStorage(Common::String code);
@@ -105,11 +101,6 @@ public:
* @return pointer to the newly created DropboxStorage or 0 if some problem occured.
*/
static DropboxStorage *loadFromConfig(Common::String keyPrefix);
-
- /**
- * Returns Dropbox auth link.
- */
- static Common::String getAuthLink();
};
} // End of namespace Dropbox