summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Workspace.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2010-09-17 10:59:31 -0700
committerMichael Jurka <mikejurka@google.com>2010-09-17 10:59:31 -0700
commitf79d5265c6446246f98e25e6b1b94d3bdc92ae29 (patch)
treeb290ac5567f14f70b5214cee47f931c0d2658726 /src/com/android/launcher2/Workspace.java
parent24ab2f1bb59a1b15f80bd398c7e3e3b3c98599fb (diff)
downloadandroid_packages_apps_Trebuchet-f79d5265c6446246f98e25e6b1b94d3bdc92ae29.tar.gz
android_packages_apps_Trebuchet-f79d5265c6446246f98e25e6b1b94d3bdc92ae29.tar.bz2
android_packages_apps_Trebuchet-f79d5265c6446246f98e25e6b1b94d3bdc92ae29.zip
removing dead code
Diffstat (limited to 'src/com/android/launcher2/Workspace.java')
-rw-r--r--src/com/android/launcher2/Workspace.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 0568d8941..599fbdabe 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -1145,39 +1145,6 @@ public class Workspace extends SmoothPagedView
}
/**
- * {@inheritDoc}
- */
- public Rect estimateDropLocation(DragSource source, int x, int y,
- int xOffset, int yOffset, DragView dragView, Object dragInfo, Rect recycle) {
- final CellLayout layout = getCurrentDropLayout();
-
- final CellLayout.CellInfo cellInfo = mDragInfo;
- final int spanX = cellInfo == null ? 1 : cellInfo.spanX;
- final int spanY = cellInfo == null ? 1 : cellInfo.spanY;
- final View ignoreView = cellInfo == null ? null : cellInfo.cell;
-
- final Rect location = recycle != null ? recycle : new Rect();
-
- // Find drop cell and convert into rectangle
- int[] dropCell = estimateDropCell(x - xOffset, y - yOffset, spanX,
- spanY, ignoreView, layout, mTempCell);
-
- if (dropCell == null) {
- return null;
- }
-
- layout.cellToPoint(dropCell[0], dropCell[1], mTempEstimate);
- location.left = mTempEstimate[0];
- location.top = mTempEstimate[1];
-
- layout.cellToPoint(dropCell[0] + spanX, dropCell[1] + spanY, mTempEstimate);
- location.right = mTempEstimate[0];
- location.bottom = mTempEstimate[1];
-
- return location;
- }
-
- /**
* Calculate the nearest cell where the given object would be dropped.
*/
private int[] estimateDropCell(int pixelX, int pixelY,