Bug 1500267 - Remove dead AutoDisableSpew r=nbp
authorMatthew Gaudet <mgaudet@mozilla.com>
Fri, 19 Oct 2018 15:10:32 +0000
changeset 490525 ca071890a9a0d926df0c6c8840b9e9caefeaad83
parent 490524 cb06428d3b23a3943d08086cfd427387ea400bb3
child 490526 cf105c387f2dc5053f26f0cb4429b97982d6fb65
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersnbp
bugs1500267
milestone64.0a1
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 */