From c1b6649bd2696deaff67f99ea752f7178915d98c Mon Sep 17 00:00:00 2001 From: Daniel Sanchez Quiros Date: Tue, 5 Nov 2024 17:43:34 +0700 Subject: [PATCH] Remove unused overlay leftovers --- network-runner/src/node/mod.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/network-runner/src/node/mod.rs b/network-runner/src/node/mod.rs index 584c3ad..eaa7cb2 100644 --- a/network-runner/src/node/mod.rs +++ b/network-runner/src/node/mod.rs @@ -82,34 +82,6 @@ pub type SharedState = Arc>; pub type Step = usize; -/// A state that represents how nodes are interconnected in the network. -pub struct OverlayState { - pub all_nodes: Vec, - pub overlay: MixnetOverlay, -} - -#[derive(Clone, Debug)] -pub struct MixnetOverlay { - pub connections: HashMap>, -} - -pub trait OverlayGetter { - fn get_overlay(&self) -> MixnetOverlay; - fn get_all_nodes(&self) -> Vec; -} - -impl OverlayGetter for SharedState { - fn get_overlay(&self) -> MixnetOverlay { - let overlay_state = self.read(); - overlay_state.clone() - } - - fn get_all_nodes(&self) -> Vec { - let overlay_state = self.read(); - overlay_state.connections.keys().cloned().collect() - } -} - pub trait Node { type Settings; type State;