diff --git a/statime-linux/src/clock/mod.rs b/statime-linux/src/clock/mod.rs index d2eecf34a..06b141ba9 100644 --- a/statime-linux/src/clock/mod.rs +++ b/statime-linux/src/clock/mod.rs @@ -173,7 +173,6 @@ impl PortTimestampToTime for LinuxClock { impl PortTimestampToTime for OverlayClock { fn port_timestamp_to_time(&self, ts: timestamped_socket::socket::Timestamp) -> Time { let roclock_time = self.underlying().port_timestamp_to_time(ts); - //log::debug!("port_timestamp_to_time for OverlayClock called"); self.time_from_underlying(roclock_time) } } diff --git a/statime-linux/src/main.rs b/statime-linux/src/main.rs index f96b52e9a..e15beedc8 100644 --- a/statime-linux/src/main.rs +++ b/statime-linux/src/main.rs @@ -41,7 +41,6 @@ trait PortClock: Clock::Error> + PortTimestampToTi impl PortClock for LinuxClock {} impl PortClock for SharedClock> {} type BoxedClock = Box; -//type SharedBoxedClock = SharedClock; type SharedOverlayClock = SharedClock>; #[derive(Parser, Debug)] diff --git a/statime-linux/src/socket.rs b/statime-linux/src/socket.rs index 94bfa2a1c..c9cc430c5 100644 --- a/statime-linux/src/socket.rs +++ b/statime-linux/src/socket.rs @@ -4,7 +4,6 @@ use std::net::{Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6}; -use statime::time::Time; use timestamped_socket::{ interface::InterfaceName, networkaddress::{EthernetAddress, MacAddress}, @@ -118,7 +117,3 @@ pub fn open_ethernet_socket( socket.join_multicast(EthernetAddress::PDELAY_EVENT, interface)?; Ok(socket) } - -pub fn timestamp_to_time(ts: timestamped_socket::socket::Timestamp) -> Time { - Time::from_fixed_nanos(ts.seconds as i128 * 1_000_000_000i128 + ts.nanos as i128) -}