diff options
| author | John Reck <jreck@google.com> | 2012-04-11 17:51:15 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2012-04-11 17:51:15 -0700 |
| commit | 09d5ed3cab4f6c40d9e670ea7c748c9e6c729605 (patch) | |
| tree | 4f37b2a80c0aab4c910f3dbd9346934d509b2da4 /Source/WebCore | |
| parent | 8266295cc837f73c2bcfbcca3f8b330d4991fc0e (diff) | |
| download | external_webkit-09d5ed3cab4f6c40d9e670ea7c748c9e6c729605.zip external_webkit-09d5ed3cab4f6c40d9e670ea7c748c9e6c729605.tar.gz external_webkit-09d5ed3cab4f6c40d9e670ea7c748c9e6c729605.tar.bz2 | |
Cleanup unused code
Bug: 6317798
Change-Id: I377753d119d74bbd2569be586d980081f78d15e7
Diffstat (limited to 'Source/WebCore')
| -rw-r--r-- | Source/WebCore/page/EventHandler.cpp | 8 | ||||
| -rw-r--r-- | Source/WebCore/platform/PlatformTouchEvent.h | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/Source/WebCore/page/EventHandler.cpp b/Source/WebCore/page/EventHandler.cpp index a737754..45450b5 100644 --- a/Source/WebCore/page/EventHandler.cpp +++ b/Source/WebCore/page/EventHandler.cpp @@ -3224,15 +3224,7 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event) // When sending a touch cancel event, use empty touches and targetTouches lists. bool isTouchCancelEvent = (state == PlatformTouchPoint::TouchCancelled); RefPtr<TouchList>& effectiveTouches(isTouchCancelEvent ? emptyList : touches); -#if PLATFORM(ANDROID) - AtomicString stateName(eventNameForTouchPointState(static_cast<PlatformTouchPoint::State>(state))); - if (event.type() == TouchLongPress) - stateName = eventNames().touchlongpressEvent; - else if (event.type() == TouchDoubleTap) - stateName = eventNames().touchdoubletapEvent; -#else const AtomicString& stateName(eventNameForTouchPointState(static_cast<PlatformTouchPoint::State>(state))); -#endif const EventTargetSet& targetsForState = changedTouches[state].m_targets; for (EventTargetSet::const_iterator it = targetsForState.begin(); it != targetsForState.end(); ++it) { diff --git a/Source/WebCore/platform/PlatformTouchEvent.h b/Source/WebCore/platform/PlatformTouchEvent.h index 2ca7c99..f7524b4 100644 --- a/Source/WebCore/platform/PlatformTouchEvent.h +++ b/Source/WebCore/platform/PlatformTouchEvent.h @@ -52,10 +52,6 @@ enum TouchEventType { , TouchMove , TouchEnd , TouchCancel -#if PLATFORM(ANDROID) - , TouchLongPress - , TouchDoubleTap -#endif }; class PlatformTouchEvent { |
