From 13b22e2afb57eb2da0513f2caca4e88549f55d0a Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 15 Aug 2019 20:47:32 +0200 Subject: Remove unused function in ReliablePacketBuffer --- src/network/connection.cpp | 7 ------- src/network/connection.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src') diff --git a/src/network/connection.cpp b/src/network/connection.cpp index 8eb91d45e..0bc13a2f0 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -182,19 +182,12 @@ u32 ReliablePacketBuffer::size() return m_list.size(); } -bool ReliablePacketBuffer::containsPacket(u16 seqnum) -{ - return !(findPacket(seqnum) == m_list.end()); -} - RPBSearchResult ReliablePacketBuffer::findPacket(u16 seqnum) { std::list::iterator i = m_list.begin(); for(; i != m_list.end(); ++i) { u16 s = readU16(&(i->data[BASE_HEADER_SIZE+1])); - /*dout_con<<"findPacket(): finding seqnum="<