aboutsummaryrefslogtreecommitdiff
path: root/common/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/debug.cpp')
-rw-r--r--common/debug.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/common/debug.cpp b/common/debug.cpp
index af3e6d8018..1c232c0662 100644
--- a/common/debug.cpp
+++ b/common/debug.cpp
@@ -57,8 +57,8 @@ namespace Common {
namespace {
-SpecialDebugLevelList gDebugLevels;
-uint32 gDebugLevelsEnabled = 0;
+static SpecialDebugLevelList gDebugLevels;
+static uint32 gDebugLevelsEnabled = 0;
struct DebugLevelSort {
bool operator()(const SpecialDebugLevel &l, const SpecialDebugLevel &r) {
@@ -110,17 +110,6 @@ bool enableSpecialDebugLevel(const String &name) {
}
}
-void enableSpecialDebugLevelList(const String &names) {
- StringTokenizer tokenizer(names, " ,");
- String token;
-
- while (!tokenizer.empty()) {
- token = tokenizer.nextToken();
- if (!enableSpecialDebugLevel(token))
- warning("Engine does not support debug level '%s'", token.c_str());
- }
-}
-
bool disableSpecialDebugLevel(const String &option) {
SpecialDebugLevelList::iterator i = find_if(gDebugLevels.begin(), gDebugLevels.end(), DebugLevelSearch(option));
@@ -138,10 +127,6 @@ const SpecialDebugLevelList &listSpecialDebugLevels() {
return gDebugLevels;
}
-uint32 getEnabledSpecialDebugLevels() {
- return gDebugLevelsEnabled;
-}
-
bool isSpecialDebugLevelEnabled(uint32 level) {
// FIXME: Seems gDebugLevel 11 has a special meaning? Document that!
if (gDebugLevel == 11)