Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang draft
authorChris Pearce <cpearce@mozilla.com>
Wed, 16 Aug 2017 17:19:58 +1200
changeset 648398 4659a73a3f86121689ae71a6e9d25335d63fcd74
parent 648397 c9b0a0991d731b38d3f077f90cd4f79b6470fe38
child 648541 c631ca2f486938a6cb948eb43c753edc8ac534bb
push id74750
push userbmo:cpearce@mozilla.com
push dateThu, 17 Aug 2017 18:50:24 +0000
reviewersjwwang
bugs1390748
milestone57.0a1
Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang It appears to be unused. MozReview-Commit-ID: 7vVK4PRzaPt
media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
--- a/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
+++ b/media/libstagefright/binding/include/mp4_demuxer/ByteReader.h
@@ -1,30 +1,25 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef BYTE_READER_H_
 #define BYTE_READER_H_
 
 #include "mozilla/EndianUtils.h"
-#include "mozilla/Vector.h"
 #include "nsTArray.h"
 #include "MediaData.h"
 
 namespace mp4_demuxer {
 
 class MOZ_RAII ByteReader
 {
 public:
   ByteReader() : mPtr(nullptr), mRemaining(0) {}
-  explicit ByteReader(const mozilla::Vector<uint8_t>& aData)
-    : mPtr(aData.begin()), mRemaining(aData.length()), mLength(aData.length())
-  {
-  }
   ByteReader(const uint8_t* aData, size_t aSize)
     : mPtr(aData), mRemaining(aSize), mLength(aSize)
   {
   }
   template<size_t S>
   explicit ByteReader(const AutoTArray<uint8_t, S>& aData)
     : mPtr(aData.Elements()), mRemaining(aData.Length()), mLength(aData.Length())
   {