Bug 1245463: [MSE] P5. Remove no longer working Dump() commands. r=gerald

MozReview-Commit-ID: 71hgJ63ksPU
This commit is contained in:
Jean-Yves Avenard 2016-02-10 18:05:39 +11:00
Родитель 96e96d9ebc
Коммит c5c63d35fc
8 изменённых файлов: 0 добавлений и 60 удалений

Просмотреть файл

@ -487,20 +487,6 @@ MediaSource::NotifyEvicted(double aStart, double aEnd)
mSourceBuffers->Evict(aStart, aEnd);
}
#if defined(DEBUG)
void
MediaSource::Dump(const char* aPath)
{
char buf[255];
PR_snprintf(buf, sizeof(buf), "%s/mediasource-%p", aPath, this);
PR_MkDir(buf, 0700);
if (mSourceBuffers) {
mSourceBuffers->Dump(buf);
}
}
#endif
void
MediaSource::GetMozDebugReaderData(nsAString& aString)
{

Просмотреть файл

@ -100,12 +100,6 @@ public:
// that were evicted are provided.
void NotifyEvicted(double aStart, double aEnd);
#if defined(DEBUG)
// Dump the contents of each SourceBuffer to a series of files under aPath.
// aPath must exist. Debug only, invoke from your favourite debugger.
void Dump(const char* aPath);
#endif
// Returns a string describing the state of the MediaSource internal
// buffered data. Used for debugging purposes.
void GetMozDebugReaderData(nsAString& aString);

Просмотреть файл

@ -586,16 +586,6 @@ SourceBuffer::Evict(double aStart, double aEnd)
mContentManager->EvictBefore(TimeUnit::FromSeconds(evictTime));
}
#if defined(DEBUG)
void
SourceBuffer::Dump(const char* aPath)
{
if (mContentManager) {
mContentManager->Dump(aPath);
}
}
#endif
NS_IMPL_CYCLE_COLLECTION_CLASS(SourceBuffer)
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(SourceBuffer)

Просмотреть файл

@ -213,10 +213,6 @@ public:
return mActive;
}
#if defined(DEBUG)
void Dump(const char* aPath);
#endif
private:
~SourceBuffer();

Просмотреть файл

@ -176,16 +176,6 @@ SourceBufferList::QueueAsyncSimpleEvent(const char* aName)
NS_DispatchToMainThread(event);
}
#if defined(DEBUG)
void
SourceBufferList::Dump(const char* aPath)
{
for (uint32_t i = 0; i < mSourceBuffers.Length(); ++i) {
mSourceBuffers[i]->Dump(aPath);
}
}
#endif
SourceBufferList::SourceBufferList(MediaSource* aMediaSource)
: DOMEventTargetHelper(aMediaSource->GetParentObject())
, mMediaSource(aMediaSource)

Просмотреть файл

@ -84,10 +84,6 @@ public:
// No event is fired and no action is performed on the sourcebuffers.
void ClearSimple();
#if defined(DEBUG)
void Dump(const char* aPath);
#endif
private:
~SourceBufferList();

Просмотреть файл

@ -297,14 +297,6 @@ TrackBuffersManager::Detach()
MSE_DEBUG("");
}
#if defined(DEBUG)
void
TrackBuffersManager::Dump(const char* aPath)
{
}
#endif
void
TrackBuffersManager::CompleteResetParserState()
{

Просмотреть файл

@ -98,10 +98,6 @@ public:
bool& aError);
media::TimeUnit GetNextRandomAccessPoint(TrackInfo::TrackType aTrack);
#if defined(DEBUG)
void Dump(const char* aPath) override;
#endif
void AddSizeOfResources(MediaSourceDecoder::ResourceSizes* aSizes);
private: