diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index cf7f513b62dc..8b0efb344d13 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -1172,22 +1172,6 @@ nsWindow::DispatchGestureEvent(uint32_t msg, uint32_t direction, double delta, } -void -nsWindow::DispatchMotionEvent(WidgetInputEvent &event, AndroidGeckoEvent *ae, - const nsIntPoint &refPoint) -{ - nsIntPoint offset = WidgetToScreenOffset(); - - event.modifiers = ae->DOMModifiers(); - event.time = ae->Time(); - - // XXX possibly bound the range of event.refPoint here. - // some code may get confused. - event.refPoint = LayoutDeviceIntPoint::FromUntyped(refPoint - offset); - - DispatchEvent(&event); -} - static unsigned int ConvertAndroidKeyCodeToDOMKeyCode(int androidKeyCode) { // Special-case alphanumeric keycodes because they are most common. diff --git a/widget/android/nsWindow.h b/widget/android/nsWindow.h index df93b137f7cf..fd049a141124 100644 --- a/widget/android/nsWindow.h +++ b/widget/android/nsWindow.h @@ -233,9 +233,6 @@ private: void InitKeyEvent(mozilla::WidgetKeyboardEvent& event, mozilla::AndroidGeckoEvent& key, ANPEvent* pluginEvent); - void DispatchMotionEvent(mozilla::WidgetInputEvent &event, - mozilla::AndroidGeckoEvent *ae, - const nsIntPoint &refPoint); void DispatchGestureEvent(uint32_t msg, uint32_t direction, double delta, const nsIntPoint &refPoint, uint64_t time); void HandleSpecialKey(mozilla::AndroidGeckoEvent *ae);