Browse Source

remove unused code for codacy scan

AndyScherzinger 7 years ago
parent
commit
018c136e4b

+ 2 - 5
src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -21,7 +21,6 @@
 
 package com.owncloud.android.ui.fragment;
 
-import android.accounts.Account;
 import android.animation.LayoutTransition;
 import android.app.Activity;
 import android.content.res.Configuration;
@@ -867,15 +866,13 @@ public class ExtendedListFragment extends Fragment
     }
 
     protected void onCreateSwipeToRefresh(SwipeRefreshLayout refreshLayout) {
-        Account account = AccountUtils.getCurrentOwnCloudAccount(MainApp.getAppContext());
-
         int primaryColor = DisplayUtils.primaryColor();
         int darkColor = DisplayUtils.primaryDarkColor();
-        int lightColor = DisplayUtils.primaryAccentColor();
+        int accentColor = DisplayUtils.primaryAccentColor();
 
         // Colors in animations
         // TODO change this to use darker and lighter color, again.
-        refreshLayout.setColorSchemeColors(lightColor, primaryColor, darkColor);
+        refreshLayout.setColorSchemeColors(accentColor, primaryColor, darkColor);
         refreshLayout.setOnRefreshListener(this);
     }
 

+ 0 - 2
src/main/java/com/owncloud/android/utils/DisplayUtils.java

@@ -788,8 +788,6 @@ public class DisplayUtils {
      * adapted from https://github.com/nextcloud/server/blob/master/apps/theming/lib/Util.php#L90-L102
      */
     public static int fontColor() {
-        int primaryColor = primaryColor();
-
         if (darkTheme()) {
             return Color.WHITE;
         } else {