Bug 1353607. P7 - remove the unused function. draft
authorJW Wang <jwwang@mozilla.com>
Tue, 28 Mar 2017 17:29:24 +0800
changeset 557654 7d6a035331a9913388f1c903805eeec33ba0ac94
parent 557653 9583ba8562fcfc6401cf568a86ef2ea65bbb71cf
child 557655 407e05273837ed6f4c3c9a93a2501a004c0239cf
push id52775
push userjwwang@mozilla.com
push dateFri, 07 Apr 2017 03:28:07 +0000
bugs1353607
milestone55.0a1
Bug 1353607. P7 - remove the unused function. MozReview-Commit-ID: AWf7ritkbJ5
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -139,21 +139,16 @@ static constexpr auto LOW_BUFFER_THRESHO
 static_assert(LOW_BUFFER_THRESHOLD_USECS > AMPLE_AUDIO_USECS,
               "LOW_BUFFER_THRESHOLD_USECS is too small");
 
 } // namespace detail
 
 // Amount of excess usecs of data to add in to the "should we buffer" calculation.
 static const uint32_t EXHAUSTED_DATA_MARGIN_USECS = 100000;
 
-static int64_t DurationToUsecs(TimeDuration aDuration)
-{
-  return static_cast<int64_t>(aDuration.ToSeconds() * USECS_PER_S);
-}
-
 static const uint32_t MIN_VIDEO_QUEUE_SIZE = 3;
 static const uint32_t MAX_VIDEO_QUEUE_SIZE = 10;
 #ifdef MOZ_APPLEMEDIA
 static const uint32_t HW_VIDEO_QUEUE_SIZE = 10;
 #else
 static const uint32_t HW_VIDEO_QUEUE_SIZE = 3;
 #endif
 static const uint32_t VIDEO_QUEUE_SEND_TO_COMPOSITOR_SIZE = 9999;