Remove two unused Range functions.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Aug 2014 04:24:33 +0000 (04:24 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Aug 2014 04:24:33 +0000 (04:24 +0000)
<https://webkit.org/b/135944>

Reviewed by Geoffrey Garen.

* dom/Range.cpp:
(WebCore::Range::maxStartOffset): Deleted.
(WebCore::Range::maxEndOffset): Deleted.
* dom/Range.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172621 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Range.cpp
Source/WebCore/dom/Range.h

index a0ae8e9..db83949 100644 (file)
@@ -1,3 +1,15 @@
+2014-08-14  Andreas Kling  <akling@apple.com>
+
+        Remove two unused Range functions.
+        <https://webkit.org/b/135944>
+
+        Reviewed by Geoffrey Garen.
+
+        * dom/Range.cpp:
+        (WebCore::Range::maxStartOffset): Deleted.
+        (WebCore::Range::maxEndOffset): Deleted.
+        * dom/Range.h:
+
 2014-08-14  Daniel Bates  <dabates@apple.com>
 
         Preserve editing style for -webkit-tap-highlight-color on all ports that enable ENABLE_TOUCH_EVENTS
index 14bbe25..0b26383 100644 (file)
@@ -2026,24 +2026,6 @@ PassRefPtr<Range> rangeOfContents(Node& node)
     return range.release();
 }
 
-int Range::maxStartOffset() const
-{
-    if (!m_start.container())
-        return 0;
-    if (!m_start.container()->offsetInCharacters())
-        return m_start.container()->childNodeCount();
-    return m_start.container()->maxCharacterOffset();
-}
-
-int Range::maxEndOffset() const
-{
-    if (!m_end.container())
-        return 0;
-    if (!m_end.container()->offsetInCharacters())
-        return m_end.container()->childNodeCount();
-    return m_end.container()->maxCharacterOffset();
-}
-
 static inline void boundaryNodeChildrenChanged(RangeBoundaryPoint& boundary, ContainerNode& container)
 {
     if (!boundary.childBefore())
index ff37e71..2f4a4ac 100644 (file)
@@ -173,8 +173,6 @@ private:
     void checkNodeBA(Node*, ExceptionCode&) const;
     void checkDeleteExtract(ExceptionCode&);
     bool containedByReadOnly() const;
-    int maxStartOffset() const;
-    int maxEndOffset() const;
 
     enum ActionType { Delete, Extract, Clone };
     PassRefPtr<DocumentFragment> processContents(ActionType, ExceptionCode&);