Browse Source

Deleting unused code

master
anthony restaino 8 years ago
parent
commit
368d71df7d
  1. 1
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 1
      app/src/main/java/acr/browser/lightning/app/BrowserApp.java
  3. 8
      app/src/main/java/acr/browser/lightning/database/HistoryItem.java
  4. 2
      app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java
  5. 13
      app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java
  6. 2
      app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java

1
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -49,7 +49,6 @@ import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeListener; import android.view.View.OnFocusChangeListener;
import android.view.View.OnKeyListener; import android.view.View.OnKeyListener;
import android.view.View.OnLongClickListener;
import android.view.View.OnTouchListener; import android.view.View.OnTouchListener;
import android.view.ViewConfiguration; import android.view.ViewConfiguration;
import android.view.ViewGroup; import android.view.ViewGroup;

1
app/src/main/java/acr/browser/lightning/app/BrowserApp.java

@ -31,7 +31,6 @@ public class BrowserApp extends Application {
@Nullable private static AppComponent sAppComponent; @Nullable private static AppComponent sAppComponent;
private static final Executor mIOThread = Executors.newSingleThreadExecutor(); private static final Executor mIOThread = Executors.newSingleThreadExecutor();
private static final Executor mTaskThread = Executors.newCachedThreadPool();
@Inject PreferenceManager mPreferenceManager; @Inject PreferenceManager mPreferenceManager;

8
app/src/main/java/acr/browser/lightning/database/HistoryItem.java

@ -30,14 +30,6 @@ public class HistoryItem implements Comparable<HistoryItem> {
public HistoryItem() {} public HistoryItem() {}
public HistoryItem(@NonNull HistoryItem item) {
this.mUrl = item.mUrl;
this.mTitle = item.mTitle;
this.mFolder = item.mFolder;
this.mOrder = item.mOrder;
this.mIsFolder = item.mIsFolder;
}
public HistoryItem(@NonNull String url, @NonNull String title) { public HistoryItem(@NonNull String url, @NonNull String title) {
Preconditions.checkNonNull(url); Preconditions.checkNonNull(url);
Preconditions.checkNonNull(title); Preconditions.checkNonNull(title);

2
app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java

@ -8,8 +8,6 @@ import android.app.Dialog;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.CheckBoxPreference; import android.preference.CheckBoxPreference;
import android.preference.Preference; import android.preference.Preference;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;

13
app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java

@ -61,11 +61,6 @@ public class ThemeUtils {
return (dark) ? getIconDarkThemeColor(context) : getIconLightThemeColor(context); return (dark) ? getIconDarkThemeColor(context) : getIconLightThemeColor(context);
} }
public static void themeImageView(@NonNull ImageView icon, @NonNull Context context, boolean dark) {
int color = dark ? getIconDarkThemeColor(context) : getIconLightThemeColor(context);
icon.setColorFilter(color, PorterDuff.Mode.SRC_IN);
}
@NonNull @NonNull
private static Drawable getVectorDrawable(@NonNull Context context, int drawableId) { private static Drawable getVectorDrawable(@NonNull Context context, int drawableId) {
Drawable drawable = ContextCompat.getDrawable(context, drawableId); Drawable drawable = ContextCompat.getDrawable(context, drawableId);
@ -116,14 +111,6 @@ public class ThemeUtils {
return drawable; return drawable;
} }
@NonNull
public static ColorDrawable getSelectedBackground(@NonNull Context context, boolean dark) {
@ColorInt final int color =
(dark) ? ContextCompat.getColor(context, R.color.selected_dark) : ContextCompat.getColor(
context, R.color.selected_light);
return new ColorDrawable(color);
}
public static int getThemedTextHintColor(boolean dark) { public static int getThemedTextHintColor(boolean dark) {
return 0x80ffffff & (dark ? Color.WHITE : Color.BLACK); return 0x80ffffff & (dark ? Color.WHITE : Color.BLACK);
} }

2
app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java

@ -33,8 +33,6 @@ import acr.browser.lightning.utils.Preconditions;
public class LightningChromeClient extends WebChromeClient { public class LightningChromeClient extends WebChromeClient {
private static final String TAG = LightningChromeClient.class.getSimpleName();
private static final String[] PERMISSIONS = new String[]{Manifest.permission.ACCESS_FINE_LOCATION}; private static final String[] PERMISSIONS = new String[]{Manifest.permission.ACCESS_FINE_LOCATION};
@NonNull private final Activity mActivity; @NonNull private final Activity mActivity;

Loading…
Cancel
Save