From 5d2c7935d9390083d1978dfc97c41ddf81f396fd Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 29 Apr 2016 14:07:08 +0200 Subject: [PATCH] Remove unused SendableMainThreadScriptChan::new() method. --- components/script/script_thread.rs | 8 -------- 1 file changed, 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, Box) { - 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);