File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -182,19 +182,12 @@ u32 ReliablePacketBuffer::size()
182
182
return m_list.size ();
183
183
}
184
184
185
- bool ReliablePacketBuffer::containsPacket (u16 seqnum)
186
- {
187
- return !(findPacket (seqnum) == m_list.end ());
188
- }
189
-
190
185
RPBSearchResult ReliablePacketBuffer::findPacket (u16 seqnum)
191
186
{
192
187
std::list<BufferedPacket>::iterator i = m_list.begin ();
193
188
for (; i != m_list.end (); ++i)
194
189
{
195
190
u16 s = readU16 (&(i->data [BASE_HEADER_SIZE+1 ]));
196
- /* dout_con<<"findPacket(): finding seqnum="<<seqnum
197
- <<", comparing to s="<<s<<std::endl;*/
198
191
if (s == seqnum)
199
192
break ;
200
193
}
Original file line number Diff line number Diff line change @@ -252,13 +252,12 @@ class ReliablePacketBuffer
252
252
253
253
void print ();
254
254
bool empty ();
255
- bool containsPacket (u16 seqnum);
256
255
RPBSearchResult notFound ();
257
256
u32 size ();
258
257
259
258
260
259
private:
261
- RPBSearchResult findPacket (u16 seqnum);
260
+ RPBSearchResult findPacket (u16 seqnum); // does not perform locking
262
261
263
262
std::list<BufferedPacket> m_list;
264
263
You can’t perform that action at this time.
0 commit comments