diff options
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r-- | components/layout_traits/lib.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/components/layout_traits/lib.rs b/components/layout_traits/lib.rs index 5d1261be127..0b431e71639 100644 --- a/components/layout_traits/lib.rs +++ b/components/layout_traits/lib.rs @@ -22,7 +22,7 @@ extern crate webrender_traits; use gfx::font_cache_thread::FontCacheThread; use gfx::paint_thread::LayoutToPaintMsg; use ipc_channel::ipc::{IpcReceiver, IpcSender}; -use msg::constellation_msg::{PanicMsg, PipelineId, PipelineNamespaceId, PipelineIndex}; +use msg::constellation_msg::{PanicMsg, PipelineId}; use net_traits::image_cache_thread::ImageCacheThread; use profile_traits::{mem, time}; use script_traits::LayoutMsg as ConstellationMsg; @@ -52,15 +52,3 @@ pub trait LayoutThreadFactory { content_process_shutdown_chan: IpcSender<()>, webrender_api_sender: Option<webrender_traits::RenderApiSender>); } - -pub trait ConvertPipelineIdToWebRender { - fn to_webrender(&self) -> webrender_traits::PipelineId; -} - -impl ConvertPipelineIdToWebRender for PipelineId { - fn to_webrender(&self) -> webrender_traits::PipelineId { - let PipelineNamespaceId(namespace_id) = self.namespace_id; - let PipelineIndex(index) = self.index; - webrender_traits::PipelineId(namespace_id, index) - } -} |