diff options
Diffstat (limited to 'components/net_traits/lib.rs')
-rw-r--r-- | components/net_traits/lib.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs index fe11294b2a5..d73e3563194 100644 --- a/components/net_traits/lib.rs +++ b/components/net_traits/lib.rs @@ -203,20 +203,6 @@ pub enum CookieSource { NonHTTP, } -pub enum ResponseSenders { - Channel(Sender<LoadResponse>), - Listener(Box<AsyncResponseTarget+ Send>), -} - -impl ResponseSenders { - pub fn from_consumer(consumer: LoadConsumer) -> ResponseSenders { - match consumer { - LoadConsumer::Channel(c) => ResponseSenders::Channel(c), - LoadConsumer::Listener(l) => ResponseSenders::Listener(l), - } - } -} - /// Messages sent in response to a `Load` message #[derive(PartialEq,Debug)] pub enum ProgressMsg { |