Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: third_party/WebKit/Source/wtf/Deque.h

Issue 2500763002: Remove Deque<>::findIf<>(). (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Deque.h
diff --git a/third_party/WebKit/Source/wtf/Deque.h b/third_party/WebKit/Source/wtf/Deque.h
index 19d6817038f6b1c2498c3d9f2ddaa06fee1ec5d4..ac5a6d085a782dc2b441a36563e89e876d4f3be3 100644
--- a/third_party/WebKit/Source/wtf/Deque.h
+++ b/third_party/WebKit/Source/wtf/Deque.h
@@ -136,9 +136,6 @@ class Deque : public ConditionalDestructor<Deque<T, INLINE_CAPACITY, Allocator>,
void clear();
- template <typename Predicate>
- iterator findIf(Predicate&);
-
template <typename VisitorDispatcher>
void trace(VisitorDispatcher);
@@ -419,18 +416,6 @@ inline void Deque<T, inlineCapacity, Allocator>::clear() {
}
template <typename T, size_t inlineCapacity, typename Allocator>
-template <typename Predicate>
-inline DequeIterator<T, inlineCapacity, Allocator>
-Deque<T, inlineCapacity, Allocator>::findIf(Predicate& predicate) {
- iterator endIterator = end();
- for (iterator it = begin(); it != endIterator; ++it) {
- if (predicate(*it))
- return it;
- }
- return endIterator;
-}
-
-template <typename T, size_t inlineCapacity, typename Allocator>
inline void Deque<T, inlineCapacity, Allocator>::expandCapacityIfNeeded() {
if (m_start) {
if (m_end + 1 != m_start)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698