Remove unused RenderNamedFlowThread::previousRendererForNode().
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Feb 2014 02:01:14 +0000 (02:01 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Feb 2014 02:01:14 +0000 (02:01 +0000)
<https://webkit.org/b/128637>

Reviewed by Antti Koivisto.

* rendering/RenderNamedFlowThread.cpp:
* rendering/RenderNamedFlowThread.h:

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderNamedFlowThread.cpp
Source/WebCore/rendering/RenderNamedFlowThread.h

index b0bd88dd4abd641ac44f97f8b55cfcddd2fcdb85..ad7014145ed612c657135f7c162c67c228bbc010 100644 (file)
@@ -1,3 +1,13 @@
+2014-02-11  Andreas Kling  <akling@apple.com>
+
+        Remove unused RenderNamedFlowThread::previousRendererForNode().
+        <https://webkit.org/b/128637>
+
+        Reviewed by Antti Koivisto.
+
+        * rendering/RenderNamedFlowThread.cpp:
+        * rendering/RenderNamedFlowThread.h:
+
 2014-02-11  Andreas Kling  <akling@apple.com>
 
         Move renderNamedFlowThreadWrapper() to RenderElement.
index 25f71aa543924bce8cdc981e1c3c77a96645159a..e0784fab81486c048e726588c7315059f2f96f63 100644 (file)
@@ -111,27 +111,6 @@ RenderObject* RenderNamedFlowThread::nextRendererForNode(Node* node) const
     return 0;
 }
 
-RenderObject* RenderNamedFlowThread::previousRendererForNode(Node* node) const
-{
-    if (m_flowThreadChildList->isEmpty())
-        return 0;
-
-    auto begin = m_flowThreadChildList->begin();
-    auto end = m_flowThreadChildList->end();
-    auto it = end;
-
-    do {
-        --it;
-        RenderObject* child = *it;
-        ASSERT(child->node());
-        unsigned short position = node->compareDocumentPosition(child->node());
-        if (position & Node::DOCUMENT_POSITION_PRECEDING)
-            return child;
-    } while (it != begin);
-
-    return 0;
-}
-
 void RenderNamedFlowThread::addFlowChild(RenderObject* newChild)
 {
     // The child list is used to sort the flow thread's children render objects 
index 1bb36e905d89925e5a3af2b7b1dd51bc3e12f958..4e2ba8c53e03c3127123c2421806e90c507e4030 100644 (file)
@@ -53,7 +53,6 @@ public:
     const RenderRegionList& invalidRenderRegionList() const { return m_invalidRegionList; }
 
     RenderObject* nextRendererForNode(Node*) const;
-    RenderObject* previousRendererForNode(Node*) const;
 
     void addFlowChild(RenderObject* newChild);
     void removeFlowChild(RenderObject*);