diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs index 3339a7331a7..0bc978f2088 100644 --- a/components/script/dom/bindings/global.rs +++ b/components/script/dom/bindings/global.rs @@ -189,15 +189,6 @@ impl<'a> GlobalRef<'a> { } } - /// `ScriptChan` used to send messages to the event loop of this global's - /// thread. - pub fn history_traversal_task_source(&self) -> Box { - match *self { - GlobalRef::Window(ref window) => window.history_traversal_task_source(), - GlobalRef::Worker(ref worker) => worker.script_chan(), - } - } - /// `ScriptChan` used to send messages to the event loop of this global's /// thread. pub fn file_reading_task_source(&self) -> FileReadingTaskSource {