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

Unified Diff: third_party/WebKit/Source/platform/LifecycleNotifier.h

Issue 2589653002: Remove LifecycleNotifier::removePending (Closed)
Patch Set: temp Created 4 years 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/platform/LifecycleNotifier.h
diff --git a/third_party/WebKit/Source/platform/LifecycleNotifier.h b/third_party/WebKit/Source/platform/LifecycleNotifier.h
index da0e6c1e1510e3ce8c9e27daaa5fad37e67ac104..f33665f3677ee5a34259b89d95bc926730be7a11 100644
--- a/third_party/WebKit/Source/platform/LifecycleNotifier.h
+++ b/third_party/WebKit/Source/platform/LifecycleNotifier.h
@@ -61,8 +61,6 @@ class LifecycleNotifier : public virtual GarbageCollectedMixin {
using ObserverSet = HeapHashSet<WeakMember<Observer>>;
- void removePending(ObserverSet&);
-
enum IterationState {
AllowingNone = 0,
AllowingAddition = 1,
@@ -115,18 +113,6 @@ inline void LifecycleNotifier<T, Observer>::removeObserver(Observer* observer) {
m_observers.remove(observer);
}
-template <typename T, typename Observer>
-inline void LifecycleNotifier<T, Observer>::removePending(
- ObserverSet& observers) {
- if (m_observers.size()) {
- // Prevent allocation (==shrinking) while removing;
- // the table is likely to become garbage soon.
- ThreadState::NoAllocationScope scope(ThreadState::current());
- observers.removeAll(m_observers);
- }
- m_observers.swap(observers);
-}
-
} // namespace blink
#endif // LifecycleNotifier_h
« 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