diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-04-29 14:07:08 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-04-29 14:55:51 +0200 |
commit | 5d2c7935d9390083d1978dfc97c41ddf81f396fd (patch) | |
tree | 26fd1ca18f2d50362420d7fe3f33104d23932abc /components | |
parent | 57b662534f8372569939149d3f0c9a0d1031747a (diff) | |
download | servo-5d2c7935d9390083d1978dfc97c41ddf81f396fd.tar.gz servo-5d2c7935d9390083d1978dfc97c41ddf81f396fd.zip |
Remove unused SendableMainThreadScriptChan::new() method.
Diffstat (limited to 'components')
-rw-r--r-- | components/script/script_thread.rs | 8 |
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>); |