Remove ACMTestTimer in iSACTest

It hasn't been used in years.

Bug: chromium:1331345
Change-Id: I8fdc1952fa1114f7f78e2535ffb76e9678e53d1d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265520
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37164}
diff --git a/modules/audio_coding/test/iSACTest.cc b/modules/audio_coding/test/iSACTest.cc
index 3e51842..246c485 100644
--- a/modules/audio_coding/test/iSACTest.cc
+++ b/modules/audio_coding/test/iSACTest.cc
@@ -59,81 +59,6 @@
 
 }  // namespace
 
-ISACTest::ACMTestTimer::ACMTestTimer() : _msec(0), _sec(0), _min(0), _hour(0) {
-  return;
-}
-
-ISACTest::ACMTestTimer::~ACMTestTimer() {
-  return;
-}
-
-void ISACTest::ACMTestTimer::Reset() {
-  _msec = 0;
-  _sec = 0;
-  _min = 0;
-  _hour = 0;
-  return;
-}
-void ISACTest::ACMTestTimer::Tick10ms() {
-  _msec += 10;
-  Adjust();
-  return;
-}
-
-void ISACTest::ACMTestTimer::Tick1ms() {
-  _msec++;
-  Adjust();
-  return;
-}
-
-void ISACTest::ACMTestTimer::Tick100ms() {
-  _msec += 100;
-  Adjust();
-  return;
-}
-
-void ISACTest::ACMTestTimer::Tick1sec() {
-  _sec++;
-  Adjust();
-  return;
-}
-
-void ISACTest::ACMTestTimer::CurrentTimeHMS(char* currTime) {
-  sprintf(currTime, "%4lu:%02u:%06.3f", _hour, _min,
-          (double)_sec + (double)_msec / 1000.);
-  return;
-}
-
-void ISACTest::ACMTestTimer::CurrentTime(unsigned long& h,
-                                         unsigned char& m,
-                                         unsigned char& s,
-                                         unsigned short& ms) {
-  h = _hour;
-  m = _min;
-  s = _sec;
-  ms = _msec;
-  return;
-}
-
-void ISACTest::ACMTestTimer::Adjust() {
-  unsigned int n;
-  if (_msec >= 1000) {
-    n = _msec / 1000;
-    _msec -= (1000 * n);
-    _sec += n;
-  }
-  if (_sec >= 60) {
-    n = _sec / 60;
-    _sec -= (n * 60);
-    _min += n;
-  }
-  if (_min >= 60) {
-    n = _min / 60;
-    _min -= (n * 60);
-    _hour += n;
-  }
-}
-
 ISACTest::ISACTest()
     : _acmA(AudioCodingModule::Create(
           AudioCodingModule::Config(CreateBuiltinAudioDecoderFactory()))),
@@ -256,15 +181,11 @@
                   wbISACConfig),
       kISAC16kPayloadType));
 
-  _myTimer.Reset();
   _channel_A2B->ResetStats();
   _channel_B2A->ResetStats();
 
-  char currentTime[500];
   while (!(_inFileA.EndOfFile() || _inFileA.Rewinded())) {
     Run10ms();
-    _myTimer.Tick10ms();
-    _myTimer.CurrentTimeHMS(currentTime);
   }
 
   _channel_A2B->ResetStats();
@@ -303,12 +224,8 @@
       kISAC16kPayloadType));
 
   int numSendCodecChanged = 0;
-  _myTimer.Reset();
-  char currentTime[50];
   while (numSendCodecChanged < (maxSampRateChange << 1)) {
     Run10ms();
-    _myTimer.Tick10ms();
-    _myTimer.CurrentTimeHMS(currentTime);
     if (_inFileA.EndOfFile()) {
       if (_inFileA.SamplingFrequency() == 16000) {
         // Switch side A to send super-wideband.
diff --git a/modules/audio_coding/test/iSACTest.h b/modules/audio_coding/test/iSACTest.h
index e000476..f6efeea 100644
--- a/modules/audio_coding/test/iSACTest.h
+++ b/modules/audio_coding/test/iSACTest.h
@@ -38,31 +38,6 @@
   void Perform();
 
  private:
-  class ACMTestTimer {
-   public:
-    ACMTestTimer();
-    ~ACMTestTimer();
-
-    void Reset();
-    void Tick10ms();
-    void Tick1ms();
-    void Tick100ms();
-    void Tick1sec();
-    void CurrentTimeHMS(char* currTime);
-    void CurrentTime(unsigned long& h,
-                     unsigned char& m,
-                     unsigned char& s,
-                     unsigned short& ms);
-
-   private:
-    void Adjust();
-
-    unsigned short _msec;
-    unsigned char _sec;
-    unsigned char _min;
-    unsigned long _hour;
-  };
-
   void Setup();
 
   void Run10ms();
@@ -86,8 +61,6 @@
   PCMFile _outFileB;
 
   std::string file_name_swb_;
-
-  ACMTestTimer _myTimer;
 };
 
 }  // namespace webrtc