Remove unused MainThreadScriptChan::new() method.

This commit is contained in:
Ms2ger 2016-04-29 14:01:46 +02:00
parent 703d018f23
commit 57b662534f

View file

@ -297,14 +297,6 @@ impl ScriptChan for MainThreadScriptChan {
} }
} }
impl MainThreadScriptChan {
/// Creates a new script chan.
pub fn new() -> (Receiver<MainThreadScriptMsg>, Box<MainThreadScriptChan>) {
let (chan, port) = channel();
(port, box MainThreadScriptChan(chan))
}
}
/// Information for an entire page. Pages are top-level browsing contexts and can contain multiple /// Information for an entire page. Pages are top-level browsing contexts and can contain multiple
/// frames. /// frames.
#[derive(JSTraceable)] #[derive(JSTraceable)]