summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-01-19 21:20:08 -0800
committerMichael Jurka <mikejurka@google.com>2011-01-19 21:20:08 -0800
commitbbe1e4ecd26199d264384293f7838a9f3061bfbc (patch)
tree64feba16e72bc11b8a25091511ca4fcc25a0ffd2 /src
parentc50c6651d388fada4c693d92f0e3bc93943262db (diff)
downloadandroid_packages_apps_Trebuchet-bbe1e4ecd26199d264384293f7838a9f3061bfbc.tar.gz
android_packages_apps_Trebuchet-bbe1e4ecd26199d264384293f7838a9f3061bfbc.tar.bz2
android_packages_apps_Trebuchet-bbe1e4ecd26199d264384293f7838a9f3061bfbc.zip
removing unused code
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/CellLayout.java16
-rw-r--r--src/com/android/launcher2/Dimmable.java6
2 files changed, 1 insertions, 21 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index af2f984b4..32497249c 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -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();
diff --git a/src/com/android/launcher2/Dimmable.java b/src/com/android/launcher2/Dimmable.java
deleted file mode 100644
index df43b3c8e..000000000
--- a/src/com/android/launcher2/Dimmable.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.android.launcher2;
-
-public interface Dimmable {
- public void setDimmableProgress(float progress);
- public float getDimmableProgress();
-}