aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
Diffstat (limited to 'components/script')
-rw-r--r--components/script/script_thread.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index c38f774c651..6b5d9a34a46 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -275,14 +275,6 @@ impl ScriptChan for SendableMainThreadScriptChan {
}
}
-impl SendableMainThreadScriptChan {
- /// Creates a new script chan.
- pub fn new() -> (Receiver<CommonScriptMsg>, Box<SendableMainThreadScriptChan>) {
- let (chan, port) = channel();
- (port, box SendableMainThreadScriptChan(chan))
- }
-}
-
/// Encapsulates internal communication of main thread messages within the script thread.
#[derive(JSTraceable)]
pub struct MainThreadScriptChan(pub Sender<MainThreadScriptMsg>);