From cecd60b35cc71e8b54e63a909823fb204f63c399 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 12 Oct 2016 16:44:20 +0200 Subject: [PATCH] Remove the unused LoadOrigin implementation from WorkerScriptLoadOrigin. --- components/script_traits/lib.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 62b6ef55ec5..93021981294 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -53,7 +53,7 @@ use ipc_channel::ipc::{IpcReceiver, IpcSender}; use libc::c_void; use msg::constellation_msg::{FrameId, FrameType, Key, KeyModifiers, KeyState}; use msg::constellation_msg::{PipelineId, PipelineNamespaceId, ReferrerPolicy, TraversalDirection}; -use net_traits::{LoadOrigin, ResourceThreads}; +use net_traits::ResourceThreads; use net_traits::bluetooth_thread::BluetoothMethodMsg; use net_traits::image::base::Image; use net_traits::image_cache_thread::ImageCacheThread; @@ -722,15 +722,3 @@ pub struct WorkerScriptLoadOrigin { /// the pipeline id of the entity requesting the load pub pipeline_id: Option } - -impl LoadOrigin for WorkerScriptLoadOrigin { - fn referrer_url(&self) -> Option { - self.referrer_url.clone() - } - fn referrer_policy(&self) -> Option { - self.referrer_policy.clone() - } - fn pipeline_id(&self) -> Option { - self.pipeline_id.clone() - } -}