summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2016-11-03 15:51:55 -0700
committerTony Wickham <twickham@google.com>2016-11-03 15:51:55 -0700
commitaa7d8776c8c907745416f0c74e445dceac378016 (patch)
treefdf4e6d679ce57310111f1ba6a03185b86235af6 /src/com/android/launcher3/Utilities.java
parentdf3bc52ca9c4271398d35b17cf550ca9099b8249 (diff)
downloadandroid_packages_apps_Trebuchet-aa7d8776c8c907745416f0c74e445dceac378016.tar.gz
android_packages_apps_Trebuchet-aa7d8776c8c907745416f0c74e445dceac378016.tar.bz2
android_packages_apps_Trebuchet-aa7d8776c8c907745416f0c74e445dceac378016.zip
Remove unused Utilities methods related to motion event translation
These were necessary when we had the ShortcutsContainerListener with touch forwarding, but they are no longer used since we removed that listener when we moved to the pre-drag model. Change-Id: I845d4a1a73fa1a675cef1c52fe304357674a2f68
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 13a69f21c..9ddc14fc9 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -48,7 +48,6 @@ import android.util.Log;
import android.util.Pair;
import android.util.SparseArray;
import android.util.TypedValue;
-import android.view.MotionEvent;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;
@@ -236,30 +235,6 @@ public final class Utilities {
localY < (v.getHeight() + slop);
}
- /** Translates MotionEvents from src's coordinate system to dst's. */
- public static void translateEventCoordinates(View src, View dst, MotionEvent dstEvent) {
- toGlobalMotionEvent(src, dstEvent);
- toLocalMotionEvent(dst, dstEvent);
- }
-
- /**
- * Emulates View.toGlobalMotionEvent(). This implementation does not handle transformations
- * (scaleX, scaleY, etc).
- */
- private static void toGlobalMotionEvent(View view, MotionEvent event) {
- view.getLocationOnScreen(sLoc0);
- event.offsetLocation(sLoc0[0], sLoc0[1]);
- }
-
- /**
- * Emulates View.toLocalMotionEvent(). This implementation does not handle transformations
- * (scaleX, scaleY, etc).
- */
- private static void toLocalMotionEvent(View view, MotionEvent event) {
- view.getLocationOnScreen(sLoc0);
- event.offsetLocation(-sLoc0[0], -sLoc0[1]);
- }
-
public static int[] getCenterDeltaInScreenSpace(View v0, View v1, int[] delta) {
v0.getLocationInWindow(sLoc0);
v1.getLocationInWindow(sLoc1);