Bug 1500267 - Remove dead AutoDisableSpew r=nbp
authorMatthew Gaudet <mgaudet@mozilla.com>
Fri, 19 Oct 2018 15:10:32 +0000
changeset 500669 ca071890a9a0d926df0c6c8840b9e9caefeaad83
parent 500668 cb06428d3b23a3943d08086cfd427387ea400bb3
child 500670 cf105c387f2dc5053f26f0cb4429b97982d6fb65
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp
bugs1500267
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1500267 - Remove dead AutoDisableSpew r=nbp Depends on D9165 Differential Revision: https://phabricator.services.mozilla.com/D9167
js/src/jit/JitSpewer.h
--- a/js/src/jit/JitSpewer.h
+++ b/js/src/jit/JitSpewer.h
@@ -265,34 +265,12 @@ static inline void DisableChannel(JitSpe
 { }
 static inline void EnableIonDebugSyncLogging()
 { }
 static inline void EnableIonDebugAsyncLogging()
 { }
 
 #endif /* JS_JITSPEW */
 
-template <JitSpewChannel Channel>
-class AutoDisableSpew
-{
-    mozilla::DebugOnly<bool> enabled_;
-
-  public:
-    AutoDisableSpew()
-      : enabled_(JitSpewEnabled(Channel))
-    {
-        DisableChannel(Channel);
-    }
-
-    ~AutoDisableSpew()
-    {
-#ifdef JS_JITSPEW
-        if (enabled_) {
-            EnableChannel(Channel);
-        }
-#endif
-    }
-};
-
 } // namespace jit
 } // namespace js
 
 #endif /* jit_JitSpewer_h */