From 4bbeecb99f0d2fa38ee719913c13b433713dcd2a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 11 Oct 2016 18:14:23 +0200 Subject: [PATCH] Remove AsyncResponseTarget. --- components/net_traits/lib.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs index ac3480f83c2..eabad085ec3 100644 --- a/components/net_traits/lib.rs +++ b/components/net_traits/lib.rs @@ -288,19 +288,6 @@ impl Action for FetchResponseMsg { } } -/// A target for async networking events. Commonly used to dispatch a runnable event to another -/// thread storing the wrapped closure for later execution. -#[derive(Deserialize, Serialize)] -pub struct AsyncResponseTarget { - pub sender: IpcSender, -} - -impl AsyncResponseTarget { - pub fn invoke_with_listener(&self, action: ResponseAction) { - self.sender.send(action).unwrap() - } -} - /// A wrapper for a network load that can either be channel or event-based. #[derive(Deserialize, Serialize)] pub enum LoadConsumer {