Commit 216a94bf authored by haraken's avatar haraken Committed by Commit bot

Remove LifecycleNotifier::removePending

It's unused

BUG=610176

Review-Url: https://codereview.chromium.org/2589653002
Cr-Commit-Position: refs/heads/master@{#439450}
parent 70be868c
...@@ -61,8 +61,6 @@ class LifecycleNotifier : public virtual GarbageCollectedMixin { ...@@ -61,8 +61,6 @@ class LifecycleNotifier : public virtual GarbageCollectedMixin {
using ObserverSet = HeapHashSet<WeakMember<Observer>>; using ObserverSet = HeapHashSet<WeakMember<Observer>>;
void removePending(ObserverSet&);
enum IterationState { enum IterationState {
AllowingNone = 0, AllowingNone = 0,
AllowingAddition = 1, AllowingAddition = 1,
...@@ -115,18 +113,6 @@ inline void LifecycleNotifier<T, Observer>::removeObserver(Observer* observer) { ...@@ -115,18 +113,6 @@ inline void LifecycleNotifier<T, Observer>::removeObserver(Observer* observer) {
m_observers.remove(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 } // namespace blink
#endif // LifecycleNotifier_h #endif // LifecycleNotifier_h
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment