Removing dead code

Change-Id: Iec1e23a9764b8ef2bb1326c8502f31f5b5c8763a
This commit is contained in:
Michael Jurka
2011-01-17 15:31:53 -08:00
parent 1d8ad0dd3b
commit 4a7d4afe87
13 changed files with 1 additions and 29 deletions
@@ -24,7 +24,6 @@ import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
@@ -26,7 +26,6 @@ import android.content.ComponentName;
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;
@@ -1060,10 +1060,6 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
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) {
final int count = getChildCount();
for (int i = 0; i < count; i++) {
@@ -31,7 +31,7 @@ import android.os.MessageQueue;
* This class is fifo.
*/
public class DeferredHandler {
private LinkedList<Runnable> mQueue = new LinkedList();
private LinkedList<Runnable> mQueue = new LinkedList<Runnable>();
private MessageQueue mMessageQueue = Looper.myQueue();
private Impl mHandler = new Impl();
@@ -18,7 +18,6 @@ package com.android.launcher2;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
-2
View File
@@ -16,8 +16,6 @@
package com.android.launcher2;
import com.android.launcher.R;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
@@ -184,7 +184,6 @@ public class InstallWidgetReceiver {
@Override
public void onClick(DialogInterface dialog, int which) {
final LauncherModel model = mLauncher.getModel();
final AppWidgetProviderInfo widgetInfo = mActivities.get(which).widgetInfo;
final PendingAddWidgetInfo createInfo = new PendingAddWidgetInfo(widgetInfo, mMimeType,
@@ -18,9 +18,7 @@ package com.android.launcher2;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.util.Log;
/**
* A convenience class for two-way animations, e.g. a fadeIn/fadeOut animation.
-3
View File
@@ -363,7 +363,6 @@ public final class Launcher extends Activity
alphaAnim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
String tag = mHomeCustomizationDrawer.getCurrentTabTag();
mCustomizePagedView.setCustomizationFilter(newType);
final float alpha = mCustomizePagedView.getAlpha();
@@ -997,7 +996,6 @@ public final class Launcher extends Activity
deleteZone.setLauncher(this);
deleteZone.setDragController(dragController);
int deleteZoneHandleId;
final View allAppsButton = findViewById(R.id.all_apps_button);
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
loadHotseats();
if (index >= 0 && index < mHotseats.length && mHotseats[index] != null) {
Intent intent = mHotseats[index];
startActivitySafely(
mHotseats[index],
"hotseat"
-4
View File
@@ -17,13 +17,9 @@
package com.android.launcher2;
import java.util.ArrayList;
import java.util.Collection;
import java.util.TreeMap;
import java.util.TreeSet;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.os.Parcel;
@@ -17,14 +17,8 @@
package com.android.launcher2;
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.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewDebug;
@@ -1,7 +1,6 @@
package com.android.launcher2;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
-2
View File
@@ -54,12 +54,10 @@ final class Utilities {
private static int sIconTextureWidth = -1;
private static int sIconTextureHeight = -1;
private static final Paint sPaint = new Paint();
private static final Paint sBlurPaint = new Paint();
private static final Paint sGlowColorPressedPaint = new Paint();
private static final Paint sGlowColorFocusedPaint = 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 Canvas sCanvas = new Canvas();