Bug 1164620 - Part 1: Remove instances of #ifdef PR_LOGGING in various places. r=froydnj

PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
This commit is contained in:
Eric Rahm
2015-05-14 10:13:24 -07:00
parent de8e672941
commit 6fa2b13ee0
14 changed files with 1 additions and 65 deletions

View File

@@ -33,7 +33,6 @@
static const char16_t kUTF16[] = { 'U', 'T', 'F', '-', '1', '6', '\0' };
#ifdef PR_LOGGING
static PRLogModuleInfo *
GetExpatDriverLog()
{
@@ -42,7 +41,6 @@ GetExpatDriverLog()
sLog = PR_NewLogModule("expatdriver");
return sLog;
}
#endif
/***************************** EXPAT CALL BACKS ******************************/
// The callback handlers that get called from the expat parser.
@@ -1080,7 +1078,6 @@ nsExpatDriver::ConsumeToken(nsScanner& aScanner, bool& aFlushTokens)
buffer = nullptr;
length = 0;
#if defined(PR_LOGGING) || defined (DEBUG)
if (blocked) {
PR_LOG(GetExpatDriverLog(), PR_LOG_DEBUG,
("Resuming Expat, will parse data remaining in Expat's "
@@ -1097,7 +1094,6 @@ nsExpatDriver::ConsumeToken(nsScanner& aScanner, bool& aFlushTokens)
NS_ConvertUTF16toUTF8(currentExpatPosition.get(),
mExpatBuffered).get()));
}
#endif
}
else {
buffer = start.get();