Bug 1309516 part 5 - remove unused MediaDecoderReaderWrapper::AwaitStartTime();r=jwwang
☠☠ backed out by fb72036436f9 ☠ ☠
authorKaku Kuo <kaku@mozilla.com>
Fri, 14 Oct 2016 17:45:59 +0800
changeset 320048 a154fa107dd382275c79602102a278523c0987c2
parent 320047 35d6e08883d65abd421ca0a2998b940fda7df965
child 320049 a876261d2d38eae83fad1f84f49734ec200341ef
push id20749
push userryanvm@gmail.com
push dateSat, 29 Oct 2016 13:21:21 +0000
treeherderfx-team@1b170b39ed6b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1309516
milestone52.0a1
Bug 1309516 part 5 - remove unused MediaDecoderReaderWrapper::AwaitStartTime();r=jwwang MozReview-Commit-ID: CcybQMPz47i
dom/media/MediaDecoderReaderWrapper.cpp
dom/media/MediaDecoderReaderWrapper.h
--- a/dom/media/MediaDecoderReaderWrapper.cpp
+++ b/dom/media/MediaDecoderReaderWrapper.cpp
@@ -164,24 +164,16 @@ MediaDecoderReaderWrapper::ReadMetadata(
   return InvokeAsync(mReader->OwnerThread(), mReader.get(), __func__,
                      &MediaDecoderReader::AsyncReadMetadata)
          ->Then(mOwnerThread, __func__, this,
                 &MediaDecoderReaderWrapper::OnMetadataRead,
                 &MediaDecoderReaderWrapper::OnMetadataNotRead)
          ->CompletionPromise();
 }
 
-RefPtr<HaveStartTimePromise>
-MediaDecoderReaderWrapper::AwaitStartTime()
-{
-  MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
-  MOZ_ASSERT(!mShutdown);
-  return mStartTimeRendezvous->AwaitStartTime();
-}
-
 void
 MediaDecoderReaderWrapper::RequestAudioData()
 {
   MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
   MOZ_ASSERT(!mShutdown);
 
   auto p = InvokeAsync(mReader->OwnerThread(), mReader.get(), __func__,
                        &MediaDecoderReader::RequestAudioData);
--- a/dom/media/MediaDecoderReaderWrapper.h
+++ b/dom/media/MediaDecoderReaderWrapper.h
@@ -47,17 +47,16 @@ private:
   MediaCallbackExc<WaitCallbackData> mVideoWaitCallback;
 
 public:
   MediaDecoderReaderWrapper(AbstractThread* aOwnerThread,
                             MediaDecoderReader* aReader);
 
   media::TimeUnit StartTime() const;
   RefPtr<MetadataPromise> ReadMetadata();
-  RefPtr<HaveStartTimePromise> AwaitStartTime();
 
   decltype(mAudioCallback)& AudioCallback() { return mAudioCallback; }
   decltype(mVideoCallback)& VideoCallback() { return mVideoCallback; }
   decltype(mAudioWaitCallback)& AudioWaitCallback() { return mAudioWaitCallback; }
   decltype(mVideoWaitCallback)& VideoWaitCallback() { return mVideoWaitCallback; }
 
   // NOTE: please set callbacks before requesting audio/video data!
   void RequestAudioData();