aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 7a75a6c846c..b0327305665 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -18,7 +18,7 @@ use profile_traits::mem::ReportsChan;
use script_traits::UntrustedNodeAddress;
use script_traits::{ConstellationControlMsg, LayoutControlMsg, LayoutMsg as ConstellationMsg};
use std::sync::Arc;
-use std::sync::mpsc::{Receiver, Sender, channel};
+use std::sync::mpsc::{Receiver, Sender};
use string_cache::Atom;
use style::context::ReflowGoal;
use style::properties::longhands::{margin_top, margin_right, margin_bottom, margin_left, overflow_x};
@@ -218,17 +218,6 @@ impl Drop for ScriptReflow {
}
}
-/// Encapsulates a channel to the layout thread.
-#[derive(Clone)]
-pub struct LayoutChan(pub Sender<Msg>);
-
-impl LayoutChan {
- pub fn new() -> (Receiver<Msg>, LayoutChan) {
- let (chan, port) = channel();
- (port, LayoutChan(chan))
- }
-}
-
pub struct NewLayoutThreadInfo {
pub id: PipelineId,
pub url: Url,