mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
findbugs: remove unused parameters
This commit is contained in:
parent
2e7bfd7f05
commit
1c29099c97
2 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue