aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/global.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-04 00:35:16 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 21:35:48 +0200
commita7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec (patch)
tree40200177fa4731b3a87a8b9ea3324adf2b224958 /components/script/dom/bindings/global.rs
parent71236e168ac9c1e85c370be09a5566ec299b7bb6 (diff)
downloadservo-a7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec.tar.gz
servo-a7305b7fc4e4b9c70e9a5ef43f66a7b6be6731ec.zip
Introduce GlobalScope::script_chan
Diffstat (limited to 'components/script/dom/bindings/global.rs')
-rw-r--r--components/script/dom/bindings/global.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/components/script/dom/bindings/global.rs b/components/script/dom/bindings/global.rs
index ecca46a5a5e..67ed8766932 100644
--- a/components/script/dom/bindings/global.rs
+++ b/components/script/dom/bindings/global.rs
@@ -25,7 +25,7 @@ use libc;
use profile_traits::time;
use script_runtime::{CommonScriptMsg, EnqueuedPromiseCallback, ScriptChan};
use script_runtime::{ScriptPort, maybe_take_panic_result};
-use script_thread::{MainThreadScriptChan, RunnableWrapper, ScriptThread};
+use script_thread::{RunnableWrapper, ScriptThread};
use script_traits::MsDuration;
use std::ffi::CString;
use std::panic;
@@ -69,16 +69,6 @@ impl<'a> GlobalRef<'a> {
/// `ScriptChan` used to send messages to the event loop of this global's
/// thread.
- pub fn script_chan(&self) -> Box<ScriptChan + Send> {
- match *self {
- GlobalRef::Window(ref window) =>
- MainThreadScriptChan(window.main_thread_script_chan().clone()).clone(),
- GlobalRef::Worker(ref worker) => worker.script_chan(),
- }
- }
-
- /// `ScriptChan` used to send messages to the event loop of this global's
- /// thread.
pub fn networking_task_source(&self) -> Box<ScriptChan + Send> {
match *self {
GlobalRef::Window(ref window) => window.networking_task_source(),