am 4a7d4afe: Removing dead code
* commit '4a7d4afe87a9146b3cefef8e00581090301b698d': Removing dead code
This commit is contained in:
commit
2b90c5778e
13 files changed
+1
-29
No files matched your search
@@ -24,7 +24,6 @@ import android.content.res.Resources;
|
|||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
import android.graphics.Color;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import android.content.ComponentName;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.PorterDuff;
|
import android.graphics.PorterDuff;
|
||||||
import android.graphics.PorterDuffColorFilter;
|
import android.graphics.PorterDuffColorFilter;
|
||||||
import android.graphics.Rect;
|
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
||||||
|
|||||||
@@ -1060,10 +1060,6 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
|
|||||||
return isVacant;
|
return isVacant;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isVacant(int originX, int originY, int spanX, int spanY) {
|
|
||||||
return isVacantIgnoring(originX, originY, spanX, spanY, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public View getChildAt(int x, int y) {
|
public View getChildAt(int x, int y) {
|
||||||
final int count = getChildCount();
|
final int count = getChildCount();
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import android.os.MessageQueue;
|
|||||||
* This class is fifo.
|
* This class is fifo.
|
||||||
*/
|
*/
|
||||||
public class DeferredHandler {
|
public class DeferredHandler {
|
||||||
private LinkedList<Runnable> mQueue = new LinkedList();
|
private LinkedList<Runnable> mQueue = new LinkedList<Runnable>();
|
||||||
private MessageQueue mMessageQueue = Looper.myQueue();
|
private MessageQueue mMessageQueue = Looper.myQueue();
|
||||||
private Impl mHandler = new Impl();
|
private Impl mHandler = new Impl();
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ package com.android.launcher2;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.graphics.Rect;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
package com.android.launcher2;
|
package com.android.launcher2;
|
||||||
|
|
||||||
import com.android.launcher.R;
|
|
||||||
|
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ public class InstallWidgetReceiver {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
final LauncherModel model = mLauncher.getModel();
|
|
||||||
final AppWidgetProviderInfo widgetInfo = mActivities.get(which).widgetInfo;
|
final AppWidgetProviderInfo widgetInfo = mActivities.get(which).widgetInfo;
|
||||||
|
|
||||||
final PendingAddWidgetInfo createInfo = new PendingAddWidgetInfo(widgetInfo, mMimeType,
|
final PendingAddWidgetInfo createInfo = new PendingAddWidgetInfo(widgetInfo, mMimeType,
|
||||||
|
|||||||
@@ -18,9 +18,7 @@ package com.android.launcher2;
|
|||||||
|
|
||||||
import android.animation.Animator;
|
import android.animation.Animator;
|
||||||
import android.animation.AnimatorListenerAdapter;
|
import android.animation.AnimatorListenerAdapter;
|
||||||
import android.animation.ObjectAnimator;
|
|
||||||
import android.animation.ValueAnimator;
|
import android.animation.ValueAnimator;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A convenience class for two-way animations, e.g. a fadeIn/fadeOut animation.
|
* A convenience class for two-way animations, e.g. a fadeIn/fadeOut animation.
|
||||||
|
|||||||
@@ -363,7 +363,6 @@ public final class Launcher extends Activity
|
|||||||
alphaAnim.addListener(new AnimatorListenerAdapter() {
|
alphaAnim.addListener(new AnimatorListenerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationEnd(Animator animation) {
|
public void onAnimationEnd(Animator animation) {
|
||||||
String tag = mHomeCustomizationDrawer.getCurrentTabTag();
|
|
||||||
mCustomizePagedView.setCustomizationFilter(newType);
|
mCustomizePagedView.setCustomizationFilter(newType);
|
||||||
|
|
||||||
final float alpha = mCustomizePagedView.getAlpha();
|
final float alpha = mCustomizePagedView.getAlpha();
|
||||||
@@ -997,7 +996,6 @@ public final class Launcher extends Activity
|
|||||||
|
|
||||||
deleteZone.setLauncher(this);
|
deleteZone.setLauncher(this);
|
||||||
deleteZone.setDragController(dragController);
|
deleteZone.setDragController(dragController);
|
||||||
int deleteZoneHandleId;
|
|
||||||
|
|
||||||
final View allAppsButton = findViewById(R.id.all_apps_button);
|
final View allAppsButton = findViewById(R.id.all_apps_button);
|
||||||
final View divider = findViewById(R.id.divider);
|
final View divider = findViewById(R.id.divider);
|
||||||
@@ -1074,7 +1072,6 @@ public final class Launcher extends Activity
|
|||||||
// reload these every tap; you never know when they might change
|
// reload these every tap; you never know when they might change
|
||||||
loadHotseats();
|
loadHotseats();
|
||||||
if (index >= 0 && index < mHotseats.length && mHotseats[index] != null) {
|
if (index >= 0 && index < mHotseats.length && mHotseats[index] != null) {
|
||||||
Intent intent = mHotseats[index];
|
|
||||||
startActivitySafely(
|
startActivitySafely(
|
||||||
mHotseats[index],
|
mHotseats[index],
|
||||||
"hotseat"
|
"hotseat"
|
||||||
|
|||||||
@@ -17,13 +17,9 @@
|
|||||||
package com.android.launcher2;
|
package com.android.launcher2;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.TreeMap;
|
|
||||||
import java.util.TreeSet;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.graphics.Bitmap;
|
|
||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|||||||
@@ -17,14 +17,8 @@
|
|||||||
package com.android.launcher2;
|
package com.android.launcher2;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Bitmap;
|
|
||||||
import android.graphics.Canvas;
|
|
||||||
import android.graphics.Color;
|
|
||||||
import android.graphics.Paint;
|
|
||||||
import android.graphics.PorterDuff;
|
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.util.Log;
|
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewDebug;
|
import android.view.ViewDebug;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.android.launcher2;
|
package com.android.launcher2;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Rect;
|
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|||||||
@@ -54,12 +54,10 @@ final class Utilities {
|
|||||||
private static int sIconTextureWidth = -1;
|
private static int sIconTextureWidth = -1;
|
||||||
private static int sIconTextureHeight = -1;
|
private static int sIconTextureHeight = -1;
|
||||||
|
|
||||||
private static final Paint sPaint = new Paint();
|
|
||||||
private static final Paint sBlurPaint = new Paint();
|
private static final Paint sBlurPaint = new Paint();
|
||||||
private static final Paint sGlowColorPressedPaint = new Paint();
|
private static final Paint sGlowColorPressedPaint = new Paint();
|
||||||
private static final Paint sGlowColorFocusedPaint = new Paint();
|
private static final Paint sGlowColorFocusedPaint = new Paint();
|
||||||
private static final Paint sDisabledPaint = new Paint();
|
private static final Paint sDisabledPaint = new Paint();
|
||||||
private static final Rect sBounds = new Rect();
|
|
||||||
private static final Rect sOldBounds = new Rect();
|
private static final Rect sOldBounds = new Rect();
|
||||||
private static final Canvas sCanvas = new Canvas();
|
private static final Canvas sCanvas = new Canvas();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user