Changeset 207431 in webkit


Ignore:
Timestamp:
Oct 17, 2016 2:17:20 PM (8 years ago)
Author:
andersca@apple.com
Message:

Remove an unused HistoryItem function
https://bugs.webkit.org/show_bug.cgi?id=163565

Reviewed by Tim Horton.

  • history/HistoryItem.cpp:

(WebCore::HistoryItem::isAncestorOf): Deleted.

  • history/HistoryItem.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207429 r207431  
     12016-10-17  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove an unused HistoryItem function
     4        https://bugs.webkit.org/show_bug.cgi?id=163565
     5
     6        Reviewed by Tim Horton.
     7
     8        * history/HistoryItem.cpp:
     9        (WebCore::HistoryItem::isAncestorOf): Deleted.
     10        * history/HistoryItem.h:
     11
    1122016-10-17  Nan Wang  <n_wang@apple.com>
    213
  • trunk/Source/WebCore/history/HistoryItem.cpp

    r207300 r207431  
    384384}
    385385
    386 bool HistoryItem::isAncestorOf(const HistoryItem& item) const
    387 {
    388     for (size_t i = 0; i < m_children.size(); ++i) {
    389         auto& child = m_children[i].get();
    390         if (&child == &item)
    391             return true;
    392         if (child.isAncestorOf(item))
    393             return true;
    394     }
    395     return false;
    396 }
    397 
    398386// We do same-document navigation if going to a different item and if either of the following is true:
    399387// - The other item corresponds to the same document (for history entries created via pushState or fragment changes).
  • trunk/Source/WebCore/history/HistoryItem.h

    r207300 r207431  
    145145    WEBCORE_EXPORT bool hasChildren() const;
    146146    void clearChildren();
    147     bool isAncestorOf(const HistoryItem&) const;
    148147   
    149148    bool shouldDoSameDocumentNavigationTo(HistoryItem& otherItem) const;
Note: See TracChangeset for help on using the changeset viewer.