зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209887. Part 3 - remove unused code. r=jya.
This commit is contained in:
Родитель
1e5ddfde5c
Коммит
2f38e6f128
|
@ -522,29 +522,6 @@ WaveReader::GetPosition()
|
|||
return mResource.Tell();
|
||||
}
|
||||
|
||||
bool
|
||||
WaveReader::GetNextChunk(uint32_t* aChunk, uint32_t* aChunkSize)
|
||||
{
|
||||
MOZ_ASSERT(aChunk, "Must have aChunk");
|
||||
MOZ_ASSERT(aChunkSize, "Must have aChunkSize");
|
||||
MOZ_ASSERT(mResource.Tell() % 2 == 0,
|
||||
"GetNextChunk called with unaligned resource");
|
||||
|
||||
char chunkHeader[CHUNK_HEADER_SIZE];
|
||||
const char* p = chunkHeader;
|
||||
|
||||
if (!ReadAll(chunkHeader, sizeof(chunkHeader))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static_assert(sizeof(uint32_t) * 2 <= CHUNK_HEADER_SIZE,
|
||||
"Reads would overflow chunkHeader buffer.");
|
||||
*aChunk = ReadUint32BE(&p);
|
||||
*aChunkSize = ReadUint32LE(&p);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
WaveReader::LoadListChunk(uint32_t aChunkSize,
|
||||
nsAutoPtr<dom::HTMLMediaElement::MetadataTags> &aTags)
|
||||
|
|
|
@ -49,7 +49,6 @@ public:
|
|||
private:
|
||||
bool ReadAll(char* aBuf, int64_t aSize, int64_t* aBytesRead = nullptr);
|
||||
bool LoadRIFFChunk();
|
||||
bool GetNextChunk(uint32_t* aChunk, uint32_t* aChunkSize);
|
||||
bool LoadFormatChunk(uint32_t aChunkSize);
|
||||
bool FindDataOffset(uint32_t aChunkSize);
|
||||
bool LoadListChunk(uint32_t aChunkSize, nsAutoPtr<dom::HTMLMediaElement::MetadataTags> &aTags);
|
||||
|
|
Загрузка…
Ссылка в новой задаче