summaryrefslogtreecommitdiffstats
path: root/mozglue/linker/Logging.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-22 21:16:37 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:52:45 +0200
commit6ef03f136bac6d677d67d1bcc4e110e891e7c4ca (patch)
treed452cf5abdb5737927c7ab2ad34e5681d061b5c1 /mozglue/linker/Logging.h
parentd6bcaa649127bc524087452c389f6dcee118cbfb (diff)
downloadUXP-6ef03f136bac6d677d67d1bcc4e110e891e7c4ca.tar
UXP-6ef03f136bac6d677d67d1bcc4e110e891e7c4ca.tar.gz
UXP-6ef03f136bac6d677d67d1bcc4e110e891e7c4ca.tar.lz
UXP-6ef03f136bac6d677d67d1bcc4e110e891e7c4ca.tar.xz
UXP-6ef03f136bac6d677d67d1bcc4e110e891e7c4ca.zip
Issue #1053 - Remove android support from mozglue
Yes, I checked for unsaved files this time...
Diffstat (limited to 'mozglue/linker/Logging.h')
-rw-r--r--mozglue/linker/Logging.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/mozglue/linker/Logging.h b/mozglue/linker/Logging.h
index 046d918f4..ec0a2b32b 100644
--- a/mozglue/linker/Logging.h
+++ b/mozglue/linker/Logging.h
@@ -7,41 +7,6 @@
#include "mozilla/Likely.h"
-#ifdef ANDROID
-#include <android/log.h>
-#define LOG(...) __android_log_print(ANDROID_LOG_INFO, "GeckoLinker", __VA_ARGS__)
-#define WARN(...) __android_log_print(ANDROID_LOG_WARN, "GeckoLinker", __VA_ARGS__)
-#define ERROR(...) __android_log_print(ANDROID_LOG_ERROR, "GeckoLinker", __VA_ARGS__)
-#else
-#include <cstdio>
-
-/* Expand to 1 or m depending on whether there is one argument or more
- * given. */
-#define MOZ_ONE_OR_MORE_ARGS_IMPL2(_1, _2, _3, _4, _5, _6, _7, _8, _9, N, ...) \
- N
-#define MOZ_ONE_OR_MORE_ARGS_IMPL(args) MOZ_ONE_OR_MORE_ARGS_IMPL2 args
-#define MOZ_ONE_OR_MORE_ARGS(...) \
- MOZ_ONE_OR_MORE_ARGS_IMPL((__VA_ARGS__, m, m, m, m, m, m, m, m, 1, 0))
-
-#define MOZ_MACRO_GLUE(a, b) a b
-#define MOZ_CONCAT2(a, b) a ## b
-#define MOZ_CONCAT1(a, b) MOZ_CONCAT2(a, b)
-#define MOZ_CONCAT(a, b) MOZ_CONCAT1(a, b)
-
-/* Some magic to choose between LOG1 and LOGm depending on the number of
- * arguments */
-#define MOZ_CHOOSE_LOG(...) \
- MOZ_MACRO_GLUE(MOZ_CONCAT(LOG, MOZ_ONE_OR_MORE_ARGS(__VA_ARGS__)), \
- (__VA_ARGS__))
-
-#define LOG1(format) fprintf(stderr, format "\n")
-#define LOGm(format, ...) fprintf(stderr, format "\n", __VA_ARGS__)
-#define LOG(...) MOZ_CHOOSE_LOG(__VA_ARGS__)
-#define WARN(...) MOZ_CHOOSE_LOG("Warning: " __VA_ARGS__)
-#define ERROR(...) MOZ_CHOOSE_LOG("Error: " __VA_ARGS__)
-
-#endif
-
class Logging
{
public: