Browse Source

codacy: remove unused code

AndyScherzinger 7 years ago
parent
commit
df217a2988

+ 1 - 14
src/main/java/com/owncloud/android/features/FeatureList.java

@@ -1,4 +1,4 @@
-/**
+/*
  *   Nextcloud Android client application
  *
  *   @author Bartosz Przybylski
@@ -27,11 +27,9 @@ import android.os.Parcelable;
 
 import com.owncloud.android.MainApp;
 import com.owncloud.android.R;
-import com.owncloud.android.lib.common.utils.Log_OC;
 
 import java.util.LinkedList;
 import java.util.List;
-import java.util.regex.Pattern;
 
 /**
  * @author Bartosz Przybylski
@@ -176,15 +174,4 @@ public class FeatureList {
                     }
                 };
     }
-
-    private static int versionCodeFromString(String version) {
-        String v[] = version.split(Pattern.quote("."));
-        if (v.length != 3) {
-            Log_OC.e("FeatureList", "Version string is incorrect " + version);
-            return 0;
-        }
-        return Integer.parseInt(v[0])*(int)(10e6) +
-                Integer.parseInt(v[1])*(int)(10e3) +
-                Integer.parseInt(v[2])*100;
-    }
 }

+ 2 - 4
src/main/java/com/owncloud/android/ui/preview/PreviewImageActivity.java

@@ -187,17 +187,15 @@ public class PreviewImageActivity extends FileActivity implements
         if (operation instanceof RemoveFileOperation) {
             finish();
         } else if (operation instanceof SynchronizeFileOperation) {
-            onSynchronizeFileOperationFinish((SynchronizeFileOperation) operation, result);
+            onSynchronizeFileOperationFinish(result);
 
         }
     }
     
-    private void onSynchronizeFileOperationFinish(SynchronizeFileOperation operation,
-                                                  RemoteOperationResult result) {
+    private void onSynchronizeFileOperationFinish(RemoteOperationResult result) {
         if (result.isSuccess()) {
             supportInvalidateOptionsMenu();
         }
-
     }
 
     @Override