diff options
author | Adam Cohen <adamcohen@google.com> | 2012-05-08 13:27:12 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-05-08 13:27:37 -0700 |
commit | c843ca452a2c1667310246bf85c8eb50656ab7a6 (patch) | |
tree | a467cec0ac8e47ccf7a5a93a5ac91a0b2758dec0 | |
parent | 67634cc81047cc514c120a8449bb97328c05bcc1 (diff) | |
download | android_packages_apps_Trebuchet-c843ca452a2c1667310246bf85c8eb50656ab7a6.tar.gz android_packages_apps_Trebuchet-c843ca452a2c1667310246bf85c8eb50656ab7a6.tar.bz2 android_packages_apps_Trebuchet-c843ca452a2c1667310246bf85c8eb50656ab7a6.zip |
Remove some dead code
Change-Id: Id29de1acbdb19dce3a0fae503d81682bd5715ffd
-rw-r--r-- | src/com/android/launcher2/DragController.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/com/android/launcher2/DragController.java b/src/com/android/launcher2/DragController.java index b4b20c69f..1b0ccf519 100644 --- a/src/com/android/launcher2/DragController.java +++ b/src/com/android/launcher2/DragController.java @@ -164,52 +164,6 @@ public class DragController { * Starts a drag. * * @param v The view that is being dragged - * @param source An object representing where the drag originated - * @param dragInfo The data associated with the object that is being dragged - * @param dragAction The drag action: either {@link #DRAG_ACTION_MOVE} or - * {@link #DRAG_ACTION_COPY} - */ - public void startDrag(View v, DragSource source, Object dragInfo, int dragAction) { - startDrag(v, source, dragInfo, dragAction, null); - } - - /** - * Starts a drag. - * - * @param v The view that is being dragged - * @param source An object representing where the drag originated - * @param dragInfo The data associated with the object that is being dragged - * @param dragAction The drag action: either {@link #DRAG_ACTION_MOVE} or - * {@link #DRAG_ACTION_COPY} - * @param dragRegion Coordinates within the bitmap b for the position of item being dragged. - * Makes dragging feel more precise, e.g. you can clip out a transparent border - */ - public void startDrag(View v, DragSource source, Object dragInfo, int dragAction, - Rect dragRegion) { - Bitmap b = getViewBitmap(v); - - if (b == null) { - // out of memory? - return; - } - - int[] loc = mCoordinatesTemp; - mLauncher.getDragLayer().getLocationInDragLayer(v, loc); - int dragLayerX = loc[0]; - int dragLayerY = loc[1]; - - startDrag(b, dragLayerX, dragLayerY, source, dragInfo, dragAction, null, dragRegion, 1f); - b.recycle(); - - if (dragAction == DRAG_ACTION_MOVE) { - v.setVisibility(View.GONE); - } - } - - /** - * Starts a drag. - * - * @param v The view that is being dragged * @param bmp The bitmap that represents the view being dragged * @param source An object representing where the drag originated * @param dragInfo The data associated with the object that is being dragged |