diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-01 03:01:54 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-10-06 20:59:11 +0200 |
commit | 14a0b8d88c7def8a247603cb8548e50087acdbc9 (patch) | |
tree | f5e9b8a93228d39e95750289c01722108dc9c74f /components/script/dom/bindings/global.rs | |
parent | d7c2da450bb7a4e1b393c1260cd13ec658d408f0 (diff) | |
download | servo-14a0b8d88c7def8a247603cb8548e50087acdbc9.tar.gz servo-14a0b8d88c7def8a247603cb8548e50087acdbc9.zip |
Move console timers to GlobalScope
Diffstat (limited to 'components/script/dom/bindings/global.rs')
-rw-r--r-- | components/script/dom/bindings/global.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs index fdfd5edd82a..23925b314a5 100644 --- a/components/script/dom/bindings/global.rs +++ b/components/script/dom/bindings/global.rs @@ -14,7 +14,6 @@ use dom::bindings::error::{ErrorInfo, report_pending_exception}; use dom::bindings::inheritance::Castable; use dom::bindings::js::Root; use dom::bindings::reflector::{Reflectable, Reflector}; -use dom::console::TimerSet; use dom::globalscope::GlobalScope; use dom::window; use dom::workerglobalscope::WorkerGlobalScope; @@ -278,14 +277,6 @@ impl<'a> GlobalRef<'a> { } } - /// Returns the global's timers for the Console API. - pub fn console_timers(&self) -> &TimerSet { - match *self { - GlobalRef::Window(ref window) => window.console_timers(), - GlobalRef::Worker(ref worker) => worker.console_timers(), - } - } - /// Returns a wrapper for runnables to ensure they are cancelled if the global /// is being destroyed. pub fn get_runnable_wrapper(&self) -> RunnableWrapper { |