diff --git a/llarp/handlers/tun.cpp b/llarp/handlers/tun.cpp index ba4ba9877..8aa19cd23 100644 --- a/llarp/handlers/tun.cpp +++ b/llarp/handlers/tun.cpp @@ -30,12 +30,6 @@ namespace llarp { namespace handlers { - bool - TunEndpoint::ShouldFlushNow(llarp_time_t now) const - { - static constexpr auto FlushInterval = 25ms; - return now >= m_LastFlushAt + FlushInterval; - } constexpr size_t udp_header_size = 8; // Intercepts DNS IP packets going to an IP on the tun interface; this is currently used on diff --git a/llarp/handlers/tun.hpp b/llarp/handlers/tun.hpp index 78755c5b8..b0c428e70 100644 --- a/llarp/handlers/tun.hpp +++ b/llarp/handlers/tun.hpp @@ -158,10 +158,6 @@ namespace llarp ResetInternalState() override; protected: - bool - ShouldFlushNow(llarp_time_t now) const; - - llarp_time_t m_LastFlushAt = 0s; using PacketQueue_t = llarp::util::CoDelQueue< net::IPPacket, net::IPPacket::GetTime,