From c843ca452a2c1667310246bf85c8eb50656ab7a6 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Tue, 8 May 2012 13:27:12 -0700 Subject: Remove some dead code Change-Id: Id29de1acbdb19dce3a0fae503d81682bd5715ffd --- src/com/android/launcher2/DragController.java | 46 --------------------------- 1 file changed, 46 deletions(-) (limited to 'src/com') 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 @@ -160,52 +160,6 @@ public class DragController { return mDragging; } - /** - * 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. * -- cgit v1.2.3