diff options
author | Marcus Klaas <mail@marcusklaas.nl> | 2015-04-19 13:26:56 +0200 |
---|---|---|
committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-04-19 13:26:56 +0200 |
commit | c1f25bbfe43e47276f1449e060c3efc6976d30fa (patch) | |
tree | cb4f36c59a5c3440cef1d9ea28b562b74637daa2 /components/net_traits/lib.rs | |
parent | 40ee41ca92206768b53cb5768c0b38fd7ba439dc (diff) | |
download | servo-c1f25bbfe43e47276f1449e060c3efc6976d30fa.tar.gz servo-c1f25bbfe43e47276f1449e060c3efc6976d30fa.zip |
Replace usage of ResponseSenders by LoadConsumer
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 { |