Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: Source/WebCore/inspector/InspectorCounters.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/InspectorController.cpp ('k') | Source/WebCore/inspector/InspectorCounters.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorCounters.h
diff --git a/Source/WebCore/inspector/InspectorCounters.h b/Source/WebCore/inspector/InspectorCounters.h
index 18e9e80b9fe6d2a5e8c67cc7b59d1c3667c9671c..d619d16f62b5860de4a3661524a7fe495ded2416 100644
--- a/Source/WebCore/inspector/InspectorCounters.h
+++ b/Source/WebCore/inspector/InspectorCounters.h
@@ -51,38 +51,25 @@ public:
static inline void incrementCounter(CounterType type)
{
-#if ENABLE(INSPECTOR)
ASSERT(isMainThread());
++s_counters[type];
-#else
- UNUSED_PARAM(type);
-#endif
}
static inline void decrementCounter(CounterType type)
{
-#if ENABLE(INSPECTOR)
ASSERT(isMainThread());
--s_counters[type];
-#else
- UNUSED_PARAM(type);
-#endif
}
-#if ENABLE(INSPECTOR)
static int counterValue(CounterType);
-#endif
private:
InspectorCounters();
-#if ENABLE(INSPECTOR)
static int s_counters[CounterTypeLength];
-#endif
};
-#if ENABLE(INSPECTOR)
class ThreadLocalInspectorCounters {
WTF_MAKE_FAST_ALLOCATED;
public:
@@ -109,7 +96,6 @@ public:
private:
int m_counters[CounterTypeLength];
};
-#endif
} // namespace WebCore
« no previous file with comments | « Source/WebCore/inspector/InspectorController.cpp ('k') | Source/WebCore/inspector/InspectorCounters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698