From 1cc8a97d4eb6807ff7d83f4c181f3c0333c3f0cb Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Mon, 4 Jul 2022 02:56:14 +0000 Subject: [PATCH] Remove unused method in HandlerNetworkContext (#3299) ## Issue Addressed N/A ## Proposed Changes Removed unused method in `HandlerNetworkContext`. --- beacon_node/network/src/router/processor.rs | 16 ---------------- 1 file changed, 16 deletions(-) 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 {