Bug 1188539 - Remove the deprecated TouchList::identifiedTouch method; r=jst
authorAaron Raimist <aaronraimist@riseup.net>
Wed, 12 Aug 2015 20:57:58 -0500
changeset 356703 ab752670d22aae2f4f56cd042a98ec239e0dc931
parent 356702 3cc3b76f4205ae74b7f4137abd6d6e11b51b9d61
child 356704 486ecd07a6d070d2e43ec088af0af290ae8208f9
child 356841 8926ca85971466a68aec289f387a0a28439a0151
push id16572
push userbmo:rail@mozilla.com
push dateTue, 26 Apr 2016 22:22:39 +0000
reviewersjst
bugs1188539
milestone49.0a1
Bug 1188539 - Remove the deprecated TouchList::identifiedTouch method; r=jst MozReview-Commit-ID: Gvsky55K19X
dom/events/TouchEvent.cpp
dom/events/TouchEvent.h
dom/webidl/TouchList.webidl
--- a/dom/events/TouchEvent.cpp
+++ b/dom/events/TouchEvent.cpp
@@ -38,28 +38,16 @@ TouchList::WrapObject(JSContext* aCx, JS
 
 // static
 bool
 TouchList::PrefEnabled(JSContext* aCx, JSObject* aGlobal)
 {
   return TouchEvent::PrefEnabled(aCx, aGlobal);
 }
 
-Touch*
-TouchList::IdentifiedTouch(int32_t aIdentifier) const
-{
-  for (uint32_t i = 0; i < mPoints.Length(); ++i) {
-    Touch* point = mPoints[i];
-    if (point && point->Identifier() == aIdentifier) {
-      return point;
-    }
-  }
-  return nullptr;
-}
-
 /******************************************************************************
  * TouchEvent
  *****************************************************************************/
 
 TouchEvent::TouchEvent(EventTarget* aOwner,
                        nsPresContext* aPresContext,
                        WidgetTouchEvent* aEvent)
   : UIEvent(aOwner, aPresContext,
--- a/dom/events/TouchEvent.h
+++ b/dom/events/TouchEvent.h
@@ -66,17 +66,16 @@ public:
   Touch* IndexedGetter(uint32_t aIndex, bool& aFound) const
   {
     aFound = aIndex < mPoints.Length();
     if (!aFound) {
       return nullptr;
     }
     return mPoints[aIndex];
   }
-  Touch* IdentifiedTouch(int32_t aIdentifier) const;
 
 protected:
   ~TouchList() {}
 
   nsCOMPtr<nsISupports> mParent;
   WidgetTouchEvent::TouchArray mPoints;
 };
 
--- a/dom/webidl/TouchList.webidl
+++ b/dom/webidl/TouchList.webidl
@@ -11,13 +11,8 @@
  */
 
 [Func="mozilla::dom::TouchList::PrefEnabled"]
 interface TouchList {
   [Pure]
   readonly attribute unsigned long length;
   getter Touch? item(unsigned long index);
 };
-
-/* Mozilla extension. */
-partial interface TouchList {
-  Touch? identifiedTouch(long identifier);
-};