Bug 1314527 - Remove unused MediaResourceCallback::SetMediaSeekable. r=bechen
authorJW Wang <jwwang@mozilla.com>
Wed, 02 Nov 2016 14:29:54 +0800
changeset 321506 8df986693ea022eed40cc5f75d6a978847fd5f0d
parent 321505 dbd323ea0320f382ee8be740caaa04c5cba96570
child 321507 7d53bf4f3712085d06395a359f29ada21ea0644f
push id30930
push userkwierso@gmail.com
push dateTue, 08 Nov 2016 21:34:26 +0000
treeherdermozilla-central@680094d95791 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbechen
bugs1314527
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1314527 - Remove unused MediaResourceCallback::SetMediaSeekable. r=bechen MozReview-Commit-ID: 9M47sUiE1Ss
dom/media/MediaDecoder.cpp
dom/media/MediaDecoder.h
dom/media/MediaResourceCallback.h
--- a/dom/media/MediaDecoder.cpp
+++ b/dom/media/MediaDecoder.cpp
@@ -167,25 +167,16 @@ MediaDecoder::ResourceCallback::SetInfin
 {
   MOZ_ASSERT(NS_IsMainThread());
   if (mDecoder) {
     mDecoder->SetInfinite(aInfinite);
   }
 }
 
 void
-MediaDecoder::ResourceCallback::SetMediaSeekable(bool aMediaSeekable)
-{
-  MOZ_ASSERT(NS_IsMainThread());
-  if (mDecoder) {
-    mDecoder->SetMediaSeekable(aMediaSeekable);
-  }
-}
-
-void
 MediaDecoder::ResourceCallback::NotifyNetworkError()
 {
   MOZ_ASSERT(NS_IsMainThread());
   if (mDecoder) {
     mDecoder->NetworkError();
   }
 }
 
--- a/dom/media/MediaDecoder.h
+++ b/dom/media/MediaDecoder.h
@@ -77,17 +77,16 @@ public:
     void Connect(MediaDecoder* aDecoder);
     // Called upon shutdown to stop receiving notifications.
     void Disconnect();
 
   private:
     /* MediaResourceCallback functions */
     MediaDecoderOwner* GetMediaOwner() const override;
     void SetInfinite(bool aInfinite) override;
-    void SetMediaSeekable(bool aMediaSeekable) override;
     void NotifyNetworkError() override;
     void NotifyDecodeError() override;
     void NotifyDataArrived() override;
     void NotifyBytesDownloaded() override;
     void NotifyDataEnded(nsresult aStatus) override;
     void NotifyPrincipalChanged() override;
     void NotifySuspendedStatusChanged() override;
     void NotifyBytesConsumed(int64_t aBytes, int64_t aOffset) override;
--- a/dom/media/MediaResourceCallback.h
+++ b/dom/media/MediaResourceCallback.h
@@ -29,19 +29,16 @@ public:
   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MediaResourceCallback);
 
   // Returns a weak reference to the media decoder owner.
   virtual MediaDecoderOwner* GetMediaOwner() const { return nullptr; }
 
   // Notify is duration is known to this MediaResource.
   virtual void SetInfinite(bool aInfinite) {}
 
-  // Notify if seeking is supported by this MediaResource.
-  virtual void SetMediaSeekable(bool aMediaSeekable) {}
-
   // Notify that a network error is encountered.
   virtual void NotifyNetworkError() {}
 
   // Notify that decoding has failed.
   virtual void NotifyDecodeError() {}
 
   // Notify that data arrives on the stream and is read into the cache.
   virtual void NotifyDataArrived() {}