diff options
Diffstat (limited to 'WebCore/platform/Timer.cpp')
-rw-r--r-- | WebCore/platform/Timer.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/WebCore/platform/Timer.cpp b/WebCore/platform/Timer.cpp index d4235d9..539846c 100644 --- a/WebCore/platform/Timer.cpp +++ b/WebCore/platform/Timer.cpp @@ -53,11 +53,6 @@ static Vector<TimerBase*>& timerHeap() return threadGlobalData().threadTimers().timerHeap(); } -static HashSet<const TimerBase*>& timersReadyToFire() -{ - return threadGlobalData().threadTimers().timersReadyToFire(); -} - // Class to represent elements in the heap when calling the standard library heap algorithms. // Maintains the m_heapIndex value in the timers themselves, which allows us to do efficient // modification of the heap. @@ -205,7 +200,7 @@ bool TimerBase::isActive() const { ASSERT(m_thread == currentThread()); - return m_nextFireTime || timersReadyToFire().contains(this); + return m_nextFireTime; } double TimerBase::nextFireInterval() const @@ -296,9 +291,6 @@ void TimerBase::setNextFireTime(double newTime) ASSERT(m_thread == currentThread()); // Keep heap valid while changing the next-fire time. - - timersReadyToFire().remove(this); - double oldTime = m_nextFireTime; if (oldTime != newTime) { m_nextFireTime = newTime; @@ -332,3 +324,4 @@ void TimerBase::fireTimersInNestedEventLoop() } } // namespace WebCore + |