Introduce GlobalScope::core_resource_thread

This commit is contained in:
Anthony Ramine 2016-10-03 23:16:55 +02:00
parent de846f25a6
commit 71236e168a
5 changed files with 12 additions and 14 deletions

View file

@ -22,7 +22,6 @@ use js::jsapi::{JSAutoCompartment, JSContext, JSObject};
use js::jsapi::{JS_GetClass, MutableHandleValue};
use js::rust::CompileOptionsWrapper;
use libc;
use net_traits::{CoreResourceThread, IpcSend};
use profile_traits::time;
use script_runtime::{CommonScriptMsg, EnqueuedPromiseCallback, ScriptChan};
use script_runtime::{ScriptPort, maybe_take_panic_result};
@ -68,11 +67,6 @@ impl<'a> GlobalRef<'a> {
}
}
/// Get the `CoreResourceThread` for this global scope
pub fn core_resource_thread(&self) -> CoreResourceThread {
self.as_global_scope().resource_threads().sender()
}
/// `ScriptChan` used to send messages to the event loop of this global's
/// thread.
pub fn script_chan(&self) -> Box<ScriptChan + Send> {