Remove unused SendableMainThreadScriptChan::new() method.

This commit is contained in:
Ms2ger 2016-04-29 14:07:08 +02:00
parent 57b662534f
commit 5d2c7935d9

View file

@ -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>);