Remove AudioProcessing::UpdateHistogramsOnCallEnd.

Bug: webrtc:10198
Change-Id: I3e7a98f9b94c171e7f105883fc755e44b2e991ae
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/173464
Reviewed-by: Per Ã…hgren <peah@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31070}
diff --git a/modules/audio_processing/audio_processing_impl.cc b/modules/audio_processing/audio_processing_impl.cc
index e5e6cce..34e6425 100644
--- a/modules/audio_processing/audio_processing_impl.cc
+++ b/modules/audio_processing/audio_processing_impl.cc
@@ -1913,8 +1913,6 @@
   }
 }
 
-void AudioProcessingImpl::UpdateHistogramsOnCallEnd() {}
-
 void AudioProcessingImpl::WriteAecDumpConfigMessage(bool forced) {
   if (!aec_dump_) {
     return;
diff --git a/modules/audio_processing/audio_processing_impl.h b/modules/audio_processing/audio_processing_impl.h
index 258e2e1..65ab5a6 100644
--- a/modules/audio_processing/audio_processing_impl.h
+++ b/modules/audio_processing/audio_processing_impl.h
@@ -69,7 +69,6 @@
   int Initialize(const ProcessingConfig& processing_config) override;
   void ApplyConfig(const AudioProcessing::Config& config) override;
   void SetExtraOptions(const webrtc::Config& config) override;
-  void UpdateHistogramsOnCallEnd() override;
   void AttachAecDump(std::unique_ptr<AecDump> aec_dump) override;
   void DetachAecDump() override;
   void AttachPlayoutAudioGenerator(
diff --git a/modules/audio_processing/include/audio_processing.h b/modules/audio_processing/include/audio_processing.h
index 265507d..7daac86 100644
--- a/modules/audio_processing/include/audio_processing.h
+++ b/modules/audio_processing/include/audio_processing.h
@@ -624,12 +624,6 @@
   // attached, its destructor is called.
   virtual void DetachPlayoutAudioGenerator() = 0;
 
-  // Use to send UMA histograms at end of a call. Note that all histogram
-  // specific member variables are reset.
-  // Deprecated. This method is deprecated and will be removed.
-  // TODO(peah): Remove this method.
-  virtual void UpdateHistogramsOnCallEnd() = 0;
-
   // Get audio processing statistics.
   virtual AudioProcessingStats GetStatistics() = 0;
   // TODO(webrtc:5298) Deprecated variant. The |has_remote_tracks| argument
diff --git a/modules/audio_processing/include/mock_audio_processing.h b/modules/audio_processing/include/mock_audio_processing.h
index 66c5831..2346489 100644
--- a/modules/audio_processing/include/mock_audio_processing.h
+++ b/modules/audio_processing/include/mock_audio_processing.h
@@ -136,7 +136,6 @@
       std::unique_ptr<AudioGenerator> audio_generator) {}
   MOCK_METHOD0(DetachPlayoutAudioGenerator, void());
 
-  MOCK_METHOD0(UpdateHistogramsOnCallEnd, void());
   MOCK_METHOD0(GetStatistics, AudioProcessingStats());
   MOCK_METHOD1(GetStatistics, AudioProcessingStats(bool));