Bug 1390748 - Remove usage of mozilla::Vector from mp4_demuxer::ByteReader. r=jwwang
It appears to be unused.
MozReview-Commit-ID: 7vVK4PRzaPt
--- 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())
{