aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_traits/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-05-27 15:28:44 +0200
committerMs2ger <Ms2ger@gmail.com>2016-05-28 14:10:32 +0200
commitf0ca775c80186253b0d70e10aed8b67a60ec493f (patch)
tree7edc9dee455e9b4ffc35ea271b8edb485f327789 /components/layout_traits/lib.rs
parent2b58586299b1017838ccc622d1ba12183fb7eb38 (diff)
downloadservo-f0ca775c80186253b0d70e10aed8b67a60ec493f.tar.gz
servo-f0ca775c80186253b0d70e10aed8b67a60ec493f.zip
Remove the ConvertPipelineIdToWebRender trait.
Diffstat (limited to 'components/layout_traits/lib.rs')
-rw-r--r--components/layout_traits/lib.rs14
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)
- }
-}