Removing a variable that was never read
In NetEq4, the local variable discard_count in PacketBuffer::DiscardOldPackets() was incremented but never read. Removing it. TBR=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8909004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5584 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -216,7 +216,6 @@ int PacketBuffer::DiscardNextPacket() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int PacketBuffer::DiscardOldPackets(uint32_t timestamp_limit) {
|
int PacketBuffer::DiscardOldPackets(uint32_t timestamp_limit) {
|
||||||
int discard_count = 0;
|
|
||||||
while (!Empty() &&
|
while (!Empty() &&
|
||||||
timestamp_limit != buffer_.front()->header.timestamp &&
|
timestamp_limit != buffer_.front()->header.timestamp &&
|
||||||
static_cast<uint32_t>(timestamp_limit
|
static_cast<uint32_t>(timestamp_limit
|
||||||
@ -225,7 +224,6 @@ int PacketBuffer::DiscardOldPackets(uint32_t timestamp_limit) {
|
|||||||
if (DiscardNextPacket() != kOK) {
|
if (DiscardNextPacket() != kOK) {
|
||||||
assert(false); // Must be ok by design.
|
assert(false); // Must be ok by design.
|
||||||
}
|
}
|
||||||
++discard_count;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user