diff --git a/beacon_node/network/src/router/processor.rs b/beacon_node/network/src/router/processor.rs index 9d86c3e55..ce11cbdce 100644 --- a/beacon_node/network/src/router/processor.rs +++ b/beacon_node/network/src/router/processor.rs @@ -409,22 +409,6 @@ impl HandlerNetworkContext { response, }) } - - /// Sends an error response to the network task. - pub fn _send_error_response( - &mut self, - peer_id: PeerId, - id: PeerRequestId, - error: RPCResponseErrorCode, - reason: String, - ) { - self.inform_network(NetworkMessage::SendErrorResponse { - peer_id, - error, - id, - reason, - }) - } } fn timestamp_now() -> Duration {