Merge "removing unused code" into honeycomb

This commit is contained in:
Michael Jurka
2011-01-19 22:26:38 -08:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 21 deletions
+1 -15
View File
@@ -53,7 +53,7 @@ import android.view.animation.LayoutAnimationController;
import java.util.Arrays;
public class CellLayout extends ViewGroup implements Dimmable, VisibilityChangedListener {
public class CellLayout extends ViewGroup implements VisibilityChangedListener {
static final String TAG = "CellLayout";
private int mCellWidth;
@@ -568,20 +568,6 @@ public class CellLayout extends ViewGroup implements Dimmable, VisibilityChanged
}
}
public void setDimmableProgress(float progress) {
for (int i = 0; i < getChildCount(); i++) {
Dimmable d = (Dimmable) getChildAt(i);
d.setDimmableProgress(progress);
}
}
public float getDimmableProgress() {
if (getChildCount() > 0) {
return ((Dimmable) getChildAt(0)).getDimmableProgress();
}
return 0.0f;
}
@Override
public void cancelLongPress() {
super.cancelLongPress();
-6
View File
@@ -1,6 +0,0 @@
package com.android.launcher2;
public interface Dimmable {
public void setDimmableProgress(float progress);
public float getDimmableProgress();
}