Remove unused ShouldFlushNow method

pull/1557/head
Jason Rhinelander 3 years ago
parent f9dc308f75
commit 4b5387a078

@ -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

@ -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,

Loading…
Cancel
Save