Clean up unused code and import declarations
Change-Id: If36fd2d99a51b07290b13f697b3ea08d31feb023
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index b732eec..7f0edde 100644
--- a/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -24,7 +24,6 @@
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
-import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Configuration;
@@ -443,22 +442,6 @@
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
}
- /** Removes and returns the ResolveInfo with the specified ComponentName */
- private ResolveInfo removeResolveInfoWithComponentName(List<ResolveInfo> list,
- ComponentName cn) {
- Iterator<ResolveInfo> iter = list.iterator();
- while (iter.hasNext()) {
- ResolveInfo rinfo = iter.next();
- ActivityInfo info = rinfo.activityInfo;
- ComponentName c = new ComponentName(info.packageName, info.name);
- if (c.equals(cn)) {
- iter.remove();
- return rinfo;
- }
- }
- return null;
- }
-
public void onPackagesUpdated() {
// TODO: this isn't ideal, but we actually need to delay here. This call is triggered
// by a broadcast receiver, and in order for it to work correctly, we need to know that
@@ -992,10 +975,7 @@
private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h) {
renderDrawableToBitmap(d, bitmap, x, y, w, h, 1f, 0xFFFFFFFF);
}
- private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h,
- float scale) {
- renderDrawableToBitmap(d, bitmap, x, y, w, h, scale, 0xFFFFFFFF);
- }
+
private void renderDrawableToBitmap(Drawable d, Bitmap bitmap, int x, int y, int w, int h,
float scale, int multiplyColor) {
if (bitmap != null) {