Эх сурвалжийг харах

codacy: remove unused variable

AndyScherzinger 7 жил өмнө
parent
commit
96372f4981

+ 0 - 3
src/main/java/com/owncloud/android/operations/UploadFileOperation.java

@@ -410,14 +410,11 @@ public class UploadFileOperation extends SyncOperation {
             Long timeStampLong = originalFile.lastModified() / 1000;
             Long timeStampLong = originalFile.lastModified() / 1000;
             String timeStamp = timeStampLong.toString();
             String timeStamp = timeStampLong.toString();
 
 
-
-            boolean onSDCard = false;
             FileChannel channel = null;
             FileChannel channel = null;
             try {
             try {
                 channel = new RandomAccessFile(mFile.getStoragePath(), "rw").getChannel();
                 channel = new RandomAccessFile(mFile.getStoragePath(), "rw").getChannel();
                 fileLock = channel.tryLock();
                 fileLock = channel.tryLock();
             } catch (FileNotFoundException e) {
             } catch (FileNotFoundException e) {
-                onSDCard = true;
                 // this basically means that the file is on SD card
                 // this basically means that the file is on SD card
                 // try to copy file to temporary dir if it doesn't exist
                 // try to copy file to temporary dir if it doesn't exist
                 String temporalPath = FileStorageUtils.getTemporalPath(mAccount.name) + mFile.getRemotePath();
                 String temporalPath = FileStorageUtils.getTemporalPath(mAccount.name) + mFile.getRemotePath();