Skip to content

Commit

Permalink
Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRahm committed Oct 6, 2014
1 parent 5fe69d4 commit 512a340
Show file tree
Hide file tree
Showing 75 changed files with 3 additions and 338 deletions.
4 changes: 0 additions & 4 deletions content/base/src/nsDOMDataChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

#include "nsDOMDataChannel.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

#include "base/basictypes.h"
#include "prlog.h"

Expand Down
4 changes: 0 additions & 4 deletions content/base/src/nsDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
#include "mozilla/Likely.h"
#include <algorithm>

#ifdef MOZ_LOGGING
// so we can get logging even in release builds
#define FORCE_PR_LOG 1
#endif
#include "prlog.h"
#include "plstr.h"
#include "prprf.h"
Expand Down
4 changes: 0 additions & 4 deletions content/base/src/nsNodeInfoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
using namespace mozilla;
using mozilla::dom::NodeInfo;

#ifdef MOZ_LOGGING
// so we can get logging even in release builds
#define FORCE_PR_LOG 1
#endif
#include "prlog.h"

#ifdef PR_LOGGING
Expand Down
3 changes: 0 additions & 3 deletions content/media/Latency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
* 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/. */

// We want this available in opt builds
#define FORCE_PR_LOG

#include "Latency.h"
#include "nsThreadUtils.h"
#include "prlog.h"
Expand Down
8 changes: 0 additions & 8 deletions content/media/webrtc/MediaEngineWebRTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

#if defined(PR_LOG)
#error "This file must be #included before any IPDL-generated files or other files that #include prlog.h"
#endif

#include "nsIPrefService.h"
#include "nsIPrefBranch.h"

Expand Down
5 changes: 0 additions & 5 deletions docshell/base/nsDocShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
#include "mozilla/VisualEventTracer.h"
#include "URIUtils.h"

#ifdef MOZ_LOGGING
// so we can get logging even in release builds (but only for some things)
#define FORCE_PR_LOG 1
#endif

#include "nsIContent.h"
#include "nsIContentInlines.h"
#include "nsIDocument.h"
Expand Down
4 changes: 0 additions & 4 deletions dom/base/nsGlobalWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@
#include "nsISupportsPrimitives.h"
#include "nsXPCOMCID.h"
#include "mozIThirdPartyUtil.h"
#ifdef MOZ_LOGGING
// so we can get logging even in release builds
#define FORCE_PR_LOG 1
#endif
#include "prlog.h"
#include "prenv.h"
#include "prprf.h"
Expand Down
4 changes: 0 additions & 4 deletions dom/base/nsJSEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
#endif
#include "AccessCheck.h"

#ifdef MOZ_LOGGING
// Force PR_LOGGING so we can get JS strict warnings even in release builds
#define FORCE_PR_LOG 1
#endif
#include "prlog.h"
#include "prthread.h"

Expand Down
4 changes: 1 addition & 3 deletions dom/plugins/base/nsPluginLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
#ifndef nsPluginLogging_h__
#define nsPluginLogging_h__

#define FORCE_PR_LOG /* Allow logging in the release build */
#define PR_LOGGING 1
#include "prlog.h"

#ifdef PR_LOGGING
#include "prlog.h"

#ifndef PLUGIN_LOGGING // allow external override
#define PLUGIN_LOGGING 1 // master compile-time switch for pluging logging
Expand Down
4 changes: 0 additions & 4 deletions extensions/auth/nsAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ enum pType {
PACKAGE_TYPE_NTLM
};

#if defined(MOZ_LOGGING)
#define FORCE_PR_LOG
#endif

#include "prlog.h"

#if defined( PR_LOGGING )
Expand Down
4 changes: 0 additions & 4 deletions extensions/pref/autoconfig/src/nsAutoConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "nsAutoConfig.h"
#include "nsIURI.h"
#include "nsIHttpChannel.h"
Expand Down
4 changes: 0 additions & 4 deletions extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "jsapi.h"
#include "nsIXPConnect.h"
#include "nsIJSRuntimeService.h"
Expand Down
4 changes: 0 additions & 4 deletions extensions/pref/autoconfig/src/nsReadConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
// sorry, this has to be before the pre-compiled header
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "nsReadConfig.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsIAppStartup.h"
Expand Down
4 changes: 0 additions & 4 deletions gfx/thebes/gfxDWriteFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include "mozilla/ArrayUtils.h"
#include "mozilla/MemoryReporting.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif /* MOZ_LOGGING */

#include "gfxDWriteFontList.h"
#include "gfxDWriteFonts.h"
#include "nsUnicharUtils.h"
Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#include "mozilla/DebugOnly.h"
#include "mozilla/MathAlgorithms.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include "nsExpirationTracker.h"
Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxFontEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "mozilla/DebugOnly.h"
#include "mozilla/MathAlgorithms.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include "nsServiceManagerUtils.h"
Expand Down
5 changes: 0 additions & 5 deletions gfx/thebes/gfxFontUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#include "prlog.h"
#endif

#include "mozilla/ArrayUtils.h"
#include "mozilla/BinarySearch.h"

Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxGDIFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "mozilla/DebugOnly.h"
#include <algorithm>

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include "gfxGDIFontList.h"
Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxMacPlatformFontList.mm
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
*
* ***** END LICENSE BLOCK ***** */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include <algorithm>
Expand Down
4 changes: 0 additions & 4 deletions gfx/thebes/gfxPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif

#include "mozilla/layers/AsyncTransactionTracker.h" // for AsyncTransactionTracker
#include "mozilla/layers/CompositorChild.h"
#include "mozilla/layers/CompositorParent.h"
Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxPlatformFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include "gfxPlatformFontList.h"
Expand Down
3 changes: 0 additions & 3 deletions gfx/thebes/gfxUserFontSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif /* MOZ_LOGGING */
#include "prlog.h"

#include "gfxUserFontSet.h"
Expand Down
10 changes: 0 additions & 10 deletions image/public/ImageLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
#ifndef ImageLogging_h
#define ImageLogging_h

// In order for FORCE_PR_LOG below to work, we have to define it before the
// first time prlog is #included.
#if defined(PR_LOG)
#error "Must #include ImageLogging.h before before any IPDL-generated files or other files that #include prlog.h."
#endif

#if defined(MOZ_LOGGING)
#define FORCE_PR_LOG
#endif

#include "prlog.h"
#include "prinrval.h"
#include "nsString.h"
Expand Down
4 changes: 0 additions & 4 deletions js/xpconnect/loader/mozJSComponentLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

#include "mozilla/Attributes.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

#include <cstdarg>

#include "prlog.h"
Expand Down
4 changes: 0 additions & 4 deletions layout/base/nsDocumentViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ using namespace mozilla::dom;

//-----------------------------------------------------
// PR LOGGING
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif

#include "prlog.h"

#ifdef PR_LOGGING
Expand Down
3 changes: 0 additions & 3 deletions layout/base/nsPresShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

/* a presentation of a document, part 2 */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif
#include "prlog.h"

#include "mozilla/ArrayUtils.h"
Expand Down
4 changes: 0 additions & 4 deletions layout/printing/nsPrintData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

//-----------------------------------------------------
// PR LOGGING
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif

#include "prlog.h"

#ifdef PR_LOGGING
Expand Down
4 changes: 0 additions & 4 deletions layout/printing/nsPrintEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ using namespace mozilla::dom;

//-----------------------------------------------------
// PR LOGGING
#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif

#include "prlog.h"

#ifdef PR_LOGGING
Expand Down
3 changes: 0 additions & 3 deletions layout/style/FontFaceSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

#include "FontFaceSet.h"

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif /* MOZ_LOGGING */
#include "prlog.h"

#include "mozilla/css/Loader.h"
Expand Down
3 changes: 0 additions & 3 deletions layout/style/Loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ class SheetLoadData : public nsIRunnable,
void FireLoadEvent(nsIThreadInternal* aThread);
};

#ifdef MOZ_LOGGING
// #define FORCE_PR_LOG /* Allow logging in the release build */
#endif /* MOZ_LOGGING */
#include "prlog.h"

#ifdef PR_LOGGING
Expand Down
3 changes: 0 additions & 3 deletions layout/style/nsFontFaceLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

/* code for loading in @font-face defined font data */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG /* Allow logging in the release build */
#endif /* MOZ_LOGGING */
#include "prlog.h"

#include "nsFontFaceLoader.h"
Expand Down
9 changes: 0 additions & 9 deletions media/mtransport/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
#ifndef logging_h__
#define logging_h__

#if defined(PR_LOG)
#error "Must #include logging.h before any IPDL-generated files or other files that #include prlog.h."
#endif

// Enforce logging under production builds for MOZ_MTLOG friends.
#ifndef PR_LOGGING
#define FORCE_PR_LOG 1
#endif

#include <sstream>
#include <prlog.h>

Expand Down
10 changes: 0 additions & 10 deletions media/webrtc/signaling/src/common/browser_logging/CSFLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
#ifndef CSFLOG_H
#define CSFLOG_H

// In order for FORCE_PR_LOG below to work, we have to define it before the
// first time prlog is #included.
#if defined(PR_LOG)
#error "Must #include CSFLog.h before before any IPDL-generated files or other files that #include prlog.h."
#endif

#if defined(MOZ_LOGGING)
#define FORCE_PR_LOG
#endif

#include <stdarg.h>
#include "prlog.h"

Expand Down
4 changes: 0 additions & 4 deletions netwerk/base/src/nsAsyncRedirectVerifyHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

#include "prlog.h"
#include "nsAsyncRedirectVerifyHelper.h"
#include "nsThreadUtils.h"
Expand Down
4 changes: 0 additions & 4 deletions netwerk/base/src/nsSocketTransport2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
* 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/. */

#ifdef MOZ_LOGGING
#define FORCE_PR_LOG
#endif

#include "nsSocketTransport2.h"

#include "mozilla/Attributes.h"
Expand Down
Loading

0 comments on commit 512a340

Please sign in to comment.