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.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 1d5cdba2827..d94f6e4a581 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -18,7 +18,7 @@ use msg::constellation_msg::{WindowSizeData};
use msg::compositor_msg::Epoch;
use net_traits::image_cache_task::ImageCacheTask;
use net_traits::PendingAsyncLoad;
-use profile_traits::mem::{Reporter, ReportsChan};
+use profile_traits::mem::ReportsChan;
use script_traits::{ConstellationControlMsg, LayoutControlMsg, ScriptControlChan};
use script_traits::{OpaqueScriptLayoutChannel, StylesheetLoadResponder, UntrustedNodeAddress};
use std::any::Any;
@@ -165,14 +165,6 @@ impl LayoutChan {
}
}
-impl Reporter for LayoutChan {
- // Just injects an appropriate event into the layout task's queue.
- fn collect_reports(&self, reports_chan: ReportsChan) -> bool {
- let LayoutChan(ref c) = *self;
- c.send(Msg::CollectReports(reports_chan)).is_ok()
- }
-}
-
/// A trait to manage opaque references to script<->layout channels without needing
/// to expose the message type to crates that don't need to know about them.
pub trait ScriptLayoutChan {