From aa32be93be481687e4fb357eea5c23d2a5d71bee Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 19 Jan 2026 13:42:00 -0600 Subject: [PATCH] fix: remove unused code to pass clippy CI checks --- src/ping.rs | 3 --- src/websocket_client.rs | 5 ----- 2 files changed, 8 deletions(-) diff --git a/src/ping.rs b/src/ping.rs index a3b877f..83ce5e4 100644 --- a/src/ping.rs +++ b/src/ping.rs @@ -4,9 +4,6 @@ use std::time::Duration; use tokio::net::UdpSocket; use tokio::time::timeout; -/// ICMP protocol number -const IPPROTO_ICMP: i32 = 1; - /// ICMP message types const ICMP_ECHO: u8 = 8; const ICMP_ECHOREPLY: u8 = 0; diff --git a/src/websocket_client.rs b/src/websocket_client.rs index 54092c0..9429eb1 100644 --- a/src/websocket_client.rs +++ b/src/websocket_client.rs @@ -321,11 +321,6 @@ impl AgentClient { ); Ok(()) } - - /// Get the monitoring check sender for spawning ping tasks. - pub fn monitoring_check_sender(&self) -> mpsc::UnboundedSender { - self.monitoring_check_tx.clone() - } } /// Execute an SNMP job and collect results.