Remove unused method in HandlerNetworkContext (#3299)

## Issue Addressed

N/A

## Proposed Changes

Removed unused method in `HandlerNetworkContext`.
This commit is contained in:
Akihito Nakano 2022-07-04 02:56:14 +00:00
parent 1219da9a45
commit 1cc8a97d4e

View File

@ -409,22 +409,6 @@ impl<T: EthSpec> HandlerNetworkContext<T> {
response, 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 { fn timestamp_now() -> Duration {