diff --git a/modules/audio_coding/codecs/ilbc/test/iLBC_test.c b/modules/audio_coding/codecs/ilbc/test/iLBC_test.c index 4dbc18513a..e0ca075eda 100644 --- a/modules/audio_coding/codecs/ilbc/test/iLBC_test.c +++ b/modules/audio_coding/codecs/ilbc/test/iLBC_test.c @@ -50,7 +50,6 @@ int main(int argc, char* argv[]) int len_int, mode; short pli; int blockcount = 0; - int packetlosscount = 0; size_t frameLen, len, len_i16s; int16_t speechType; IlbcEncoderInstance *Enc_Inst; @@ -189,7 +188,6 @@ int main(int argc, char* argv[]) /* Packet loss -> remove info from frame */ memset(encoded_data, 0, sizeof(int16_t)*ILBCNOOFWORDS_MAX); - packetlosscount++; } } else { fprintf(stderr, "Error. Channel file too short\n"); diff --git a/modules/audio_processing/agc/loudness_histogram_unittest.cc b/modules/audio_processing/agc/loudness_histogram_unittest.cc index 30ea5d326c..af193ee8f1 100644 --- a/modules/audio_processing/agc/loudness_histogram_unittest.cc +++ b/modules/audio_processing/agc/loudness_histogram_unittest.cc @@ -63,14 +63,12 @@ void LoudnessHistogramTest::RunTest(bool enable_circular_buff, InputOutput io; int num_updates = 0; - int num_reset = 0; while (fread(&io, sizeof(InputOutput), 1, in_file) == 1) { if (io.rms < 0) { // We have to reset. hist_->Reset(); TestClean(); num_updates = 0; - num_reset++; // Read the next chunk of input. if (fread(&io, sizeof(InputOutput), 1, in_file) != 1) break; diff --git a/modules/congestion_controller/goog_cc/delay_based_bwe_unittest_helper.cc b/modules/congestion_controller/goog_cc/delay_based_bwe_unittest_helper.cc index 3eb0ae38e5..6b4cd77de7 100644 --- a/modules/congestion_controller/goog_cc/delay_based_bwe_unittest_helper.cc +++ b/modules/congestion_controller/goog_cc/delay_based_bwe_unittest_helper.cc @@ -128,7 +128,6 @@ int64_t StreamGenerator::GenerateFrame(std::vector* packets, auto it = std::min_element(streams_.begin(), streams_.end(), RtpStream::Compare); (*it)->GenerateFrame(time_now_us, packets); - int i = 0; for (PacketResult& packet : *packets) { int capacity_bpus = capacity_ / 1000; int64_t required_network_time_us = @@ -138,7 +137,6 @@ int64_t StreamGenerator::GenerateFrame(std::vector* packets, std::max(time_now_us + required_network_time_us, prev_arrival_time_us_ + required_network_time_us); packet.receive_time = Timestamp::Micros(prev_arrival_time_us_); - ++i; } it = std::min_element(streams_.begin(), streams_.end(), RtpStream::Compare); return std::max((*it)->next_rtp_time(), time_now_us); diff --git a/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc b/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc index d1675bd805..b70ae8533f 100644 --- a/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc +++ b/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc @@ -179,7 +179,6 @@ int64_t StreamGenerator::GenerateFrame(RtpStream::PacketList* packets, StreamMap::iterator it = std::min_element(streams_.begin(), streams_.end(), RtpStream::Compare); (*it).second->GenerateFrame(time_now_us, packets); - int i = 0; for (RtpStream::PacketList::iterator packet_it = packets->begin(); packet_it != packets->end(); ++packet_it) { int capacity_bpus = capacity_ / 1000; @@ -189,7 +188,6 @@ int64_t StreamGenerator::GenerateFrame(RtpStream::PacketList* packets, std::max(time_now_us + required_network_time_us, prev_arrival_time_us_ + required_network_time_us); (*packet_it)->arrival_time = prev_arrival_time_us_; - ++i; } it = std::min_element(streams_.begin(), streams_.end(), RtpStream::Compare); return std::max((*it).second->next_rtp_time(), time_now_us);