| 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
|
|
|