aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/global.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 03:01:54 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:11 +0200
commit14a0b8d88c7def8a247603cb8548e50087acdbc9 (patch)
treef5e9b8a93228d39e95750289c01722108dc9c74f /components/script/dom/bindings/global.rs
parentd7c2da450bb7a4e1b393c1260cd13ec658d408f0 (diff)
downloadservo-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.rs9
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 {