Issue #1877 - Resolve RELEASE_OR_BETA conditionals.

This commit is contained in:
Moonchild 2022-02-04 01:44:41 +00:00 committed by roytam1
commit d4eac725fd
30 changed files with 75 additions and 144 deletions

View file

@ -44,7 +44,7 @@ void
StreamControl::CloseReadStreams(const nsID& aId)
{
AssertOwningThread();
#if defined(DEBUG) || !defined(RELEASE_OR_BETA)
#if defined(DEBUG)
uint32_t closedCount = 0;
#endif
@ -53,13 +53,15 @@ StreamControl::CloseReadStreams(const nsID& aId)
RefPtr<ReadStream::Controllable> stream = iter.GetNext();
if (stream->MatchId(aId)) {
stream->CloseStream();
#if defined(DEBUG) || !defined(RELEASE_OR_BETA)
#if defined(DEBUG)
closedCount += 1;
#endif
}
}
#if defined(DEBUG)
MOZ_DIAGNOSTIC_ASSERT(closedCount > 0);
#endif
}
void