From fbc147e273d15b779587154d89d2691ff77c749a Mon Sep 17 00:00:00 2001 From: Diva M Date: Thu, 22 Dec 2022 17:34:01 -0500 Subject: [PATCH] remove unused entry struct --- .../network/src/sync/block_sidecar_coupling.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/beacon_node/network/src/sync/block_sidecar_coupling.rs b/beacon_node/network/src/sync/block_sidecar_coupling.rs index 762f37692..60c5a62ea 100644 --- a/beacon_node/network/src/sync/block_sidecar_coupling.rs +++ b/beacon_node/network/src/sync/block_sidecar_coupling.rs @@ -1,7 +1,4 @@ -use std::{ - collections::{hash_map::OccupiedEntry, VecDeque}, - sync::Arc, -}; +use std::{collections::VecDeque, sync::Arc}; use types::{ signed_block_and_blobs::BlockWrapper, BlobsSidecar, EthSpec, SignedBeaconBlock, @@ -25,18 +22,6 @@ pub struct BlockBlobRequestInfo { is_sidecar_rpc_finished: bool, } -pub struct BlockBlobRequestEntry<'a, K, T: EthSpec> { - entry: OccupiedEntry<'a, K, BlockBlobRequestInfo>, -} - -impl<'a, K, T: EthSpec> From>> - for BlockBlobRequestEntry<'a, K, T> -{ - fn from(entry: OccupiedEntry<'a, K, BlockBlobRequestInfo>) -> Self { - BlockBlobRequestEntry { entry } - } -} - impl BlockBlobRequestInfo { pub fn add_block_response(&mut self, maybe_block: Option>>) { match maybe_block {