From 4f3e9383eb422c87e2689548653b89f34f5516a5 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 5 Jun 2015 00:13:25 -0700 Subject: Code cleanup > Removing obsolete logging > Removing unused methods > Removing resource leak warning due to non-static handler class in launcher Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb --- src/com/android/launcher3/LauncherAppState.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/com/android/launcher3/LauncherAppState.java') diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java index d4b41e671..afa09ec83 100644 --- a/src/com/android/launcher3/LauncherAppState.java +++ b/src/com/android/launcher3/LauncherAppState.java @@ -41,7 +41,6 @@ public class LauncherAppState { private final WidgetPreviewLoader mWidgetCache; private final boolean mIsScreenLarge; - private final float mScreenDensity; private final int mLongPressTimeout = 300; private boolean mWallpaperChangedSinceLastCheck; @@ -89,7 +88,6 @@ public class LauncherAppState { // set sIsScreenXLarge and mScreenDensity *before* creating icon cache mIsScreenLarge = isScreenLarge(sContext.getResources()); - mScreenDensity = sContext.getResources().getDisplayMetrics().density; mInvariantDeviceProfile = new InvariantDeviceProfile(sContext); mIconCache = new IconCache(sContext, mInvariantDeviceProfile); mWidgetCache = new WidgetPreviewLoader(sContext, mInvariantDeviceProfile, mIconCache); @@ -180,15 +178,6 @@ public class LauncherAppState { return res.getBoolean(R.bool.is_large_tablet); } - public static boolean isScreenLandscape(Context context) { - return context.getResources().getConfiguration().orientation == - Configuration.ORIENTATION_LANDSCAPE; - } - - public float getScreenDensity() { - return mScreenDensity; - } - public int getLongPressTimeout() { return mLongPressTimeout; } -- cgit v1.2.3