From 1c29099c9768a8370523daa76d6cb5fe977f2a02 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Wed, 1 Aug 2018 18:19:09 +0200 Subject: [PATCH] findbugs: remove unused parameters --- .../owncloud/android/ui/activity/UploadFilesActivity.java | 2 +- .../java/com/owncloud/android/utils/FileStorageUtils.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java b/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java index f6350f447b..c53acd3d9e 100644 --- a/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/UploadFilesActivity.java @@ -534,7 +534,7 @@ public class UploadFilesActivity extends FileActivity implements File localFile = new File(localPath); total += localFile.length(); } - return FileStorageUtils.getUsableSpace(mAccountOnCreation.name) >= total; + return FileStorageUtils.getUsableSpace() >= total; } return true; diff --git a/src/main/java/com/owncloud/android/utils/FileStorageUtils.java b/src/main/java/com/owncloud/android/utils/FileStorageUtils.java index 12152a86aa..b8d00e5d50 100644 --- a/src/main/java/com/owncloud/android/utils/FileStorageUtils.java +++ b/src/main/java/com/owncloud/android/utils/FileStorageUtils.java @@ -94,11 +94,10 @@ public class FileStorageUtils { /** * Optimistic number of bytes available on sd-card. accountName is ignored. - * - * @param accountName not used. can thus be null. + * * @return Optimistic number of available bytes (can be less) */ - public static long getUsableSpace(String accountName) { + public static long getUsableSpace() { File savePath = new File(MainApp.getStoragePath()); return savePath.getUsableSpace(); }