findbugs: remove unused parameters

This commit is contained in:
AndyScherzinger 2018-08-01 18:19:09 +02:00
parent 2e7bfd7f05
commit 1c29099c97
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 3 additions and 4 deletions

View file

@ -534,7 +534,7 @@ public class UploadFilesActivity extends FileActivity implements
File localFile = new File(localPath); File localFile = new File(localPath);
total += localFile.length(); total += localFile.length();
} }
return FileStorageUtils.getUsableSpace(mAccountOnCreation.name) >= total; return FileStorageUtils.getUsableSpace() >= total;
} }
return true; return true;

View file

@ -94,11 +94,10 @@ public class FileStorageUtils {
/** /**
* Optimistic number of bytes available on sd-card. accountName is ignored. * 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) * @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()); File savePath = new File(MainApp.getStoragePath());
return savePath.getUsableSpace(); return savePath.getUsableSpace();
} }