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 {