From 4b5387a078482a23d64fd244277beab7c4873fb6 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Wed, 3 Mar 2021 12:55:50 -0400 Subject: [PATCH] Remove unused ShouldFlushNow method --- llarp/handlers/tun.cpp | 6 ------ llarp/handlers/tun.hpp | 4 ---- 2 files changed, 10 deletions(-) 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,