Deleting unused code

This commit is contained in:
anthony restaino 2017-05-05 20:26:01 -04:00
parent d7e5a5fbe2
commit 368d71df7d
6 changed files with 0 additions and 27 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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);
} }

View File

@ -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;