summaryrefslogtreecommitdiff
path: root/dom/power
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-03-10 22:33:51 +0000
committerMoonchild <moonchild@palemoon.org>2021-03-11 06:41:21 +0000
commitdce8a3300b191eeebee6f15f3f6e0f5a12a177b1 (patch)
treea38500afc01411508ba2cb986f490ca4c8fa9ca1 /dom/power
parent515c1193c5663e46a313acb7a39ed2f3d209f69e (diff)
downloaduxp-dce8a3300b191eeebee6f15f3f6e0f5a12a177b1.tar.gz
Issue #1053 - Remove Android-specific blocks from system headers and /dom
Diffstat (limited to 'dom/power')
-rw-r--r--dom/power/PowerManagerService.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/dom/power/PowerManagerService.cpp b/dom/power/PowerManagerService.cpp
index 057d5c992b..bc2f40c40a 100644
--- a/dom/power/PowerManagerService.cpp
+++ b/dom/power/PowerManagerService.cpp
@@ -23,23 +23,7 @@
#include <unistd.h>
#endif
-#ifdef ANDROID
-#include <android/log.h>
-extern "C" char* PrintJSStack();
-static void LogFunctionAndJSStack(const char* funcname) {
- char *jsstack = PrintJSStack();
- __android_log_print(ANDROID_LOG_INFO, "PowerManagerService", \
- "Call to %s. The JS stack is:\n%s\n",
- funcname,
- jsstack ? jsstack : "<no JS stack>");
- JS_smprintf_free(jsstack);
-}
-// bug 839452
-#define LOG_FUNCTION_AND_JS_STACK() \
- LogFunctionAndJSStack(__PRETTY_FUNCTION__);
-#else
#define LOG_FUNCTION_AND_JS_STACK()
-#endif
namespace mozilla {
namespace dom {