From 57b662534f8372569939149d3f0c9a0d1031747a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 29 Apr 2016 14:01:46 +0200 Subject: [PATCH] Remove unused MainThreadScriptChan::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 a557238e99c..c38f774c651 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -297,14 +297,6 @@ impl ScriptChan for MainThreadScriptChan { } } -impl MainThreadScriptChan { - /// Creates a new script chan. - pub fn new() -> (Receiver, Box) { - let (chan, port) = channel(); - (port, box MainThreadScriptChan(chan)) - } -} - /// Information for an entire page. Pages are top-level browsing contexts and can contain multiple /// frames. #[derive(JSTraceable)]