Remove dead structs from TunnelManager
Not sure how dead code detection didn't get these they aren't marked to
be ignored and are clearly left over from the actix days.
@@ -28,17 +28,12 @@ use std::collections::HashSet;
use std::collections::VecDeque;
use std::fmt;
use std::fmt::Display;
-use std::fmt::{Formatter, Result as FmtResult};
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::path::Path;
use std::sync::Arc;
use std::sync::RwLock;
use std::time::Instant;
-/// Holds messages from NetworkMonitor that need to be processed by TunnelManager
-#[derive(Debug, Default)]
-struct NetworkMonitorQueue {}
-
lazy_static! {
static ref TUNNEL_MANAGER: Arc<RwLock<TunnelManager>> =
Arc::new(RwLock::new(TunnelManager::default()));
@@ -48,18 +43,6 @@ pub fn get_tunnel_manager() -> TunnelManager {
TUNNEL_MANAGER.read().unwrap().clone()
}
-#[derive(Debug)]
-pub enum TunnelManagerError {
- _InvalidStateError,
-}
-impl Display for TunnelManagerError {
- fn fmt(&self, f: &mut Formatter) -> FmtResult {
- match self {
- TunnelManagerError::_InvalidStateError => write!(f, "Invalid state"),
- }
- }
-}
-
/// Used to trigger the enforcement handler
#[derive(Debug, Clone)]
pub enum TunnelAction {
