From 96372f4981019af827484b7ac685b8d98f0eb887 Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Tue, 5 Sep 2017 14:18:11 +0200 Subject: [PATCH] codacy: remove unused variable --- .../com/owncloud/android/operations/UploadFileOperation.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/operations/UploadFileOperation.java b/src/main/java/com/owncloud/android/operations/UploadFileOperation.java index 30f46ece5f..9fa3f43d40 100644 --- a/src/main/java/com/owncloud/android/operations/UploadFileOperation.java +++ b/src/main/java/com/owncloud/android/operations/UploadFileOperation.java @@ -410,14 +410,11 @@ public class UploadFileOperation extends SyncOperation { Long timeStampLong = originalFile.lastModified() / 1000; String timeStamp = timeStampLong.toString(); - - boolean onSDCard = false; FileChannel channel = null; try { channel = new RandomAccessFile(mFile.getStoragePath(), "rw").getChannel(); fileLock = channel.tryLock(); } catch (FileNotFoundException e) { - onSDCard = true; // this basically means that the file is on SD card // try to copy file to temporary dir if it doesn't exist String temporalPath = FileStorageUtils.getTemporalPath(mAccount.name) + mFile.getRemotePath();