summaryrefslogtreecommitdiffstats
path: root/mfbt/Assertions.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-22 23:30:31 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-02-22 23:30:31 -0500
commit2896724eaf851ee4b3d6f14eae05dcc626d88cdd (patch)
tree26eadf5f6c048489d98a3690952529cde77cfab6 /mfbt/Assertions.h
parentdada39db2360486de3135d902aed4c351d6a76ad (diff)
downloadUXP-2896724eaf851ee4b3d6f14eae05dcc626d88cdd.tar
UXP-2896724eaf851ee4b3d6f14eae05dcc626d88cdd.tar.gz
UXP-2896724eaf851ee4b3d6f14eae05dcc626d88cdd.tar.lz
UXP-2896724eaf851ee4b3d6f14eae05dcc626d88cdd.tar.xz
UXP-2896724eaf851ee4b3d6f14eae05dcc626d88cdd.zip
Issue #1053 - Remove android support from mfbt
Diffstat (limited to 'mfbt/Assertions.h')
-rw-r--r--mfbt/Assertions.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/mfbt/Assertions.h b/mfbt/Assertions.h
index e7b010b7f..94dcfb8a5 100644
--- a/mfbt/Assertions.h
+++ b/mfbt/Assertions.h
@@ -66,9 +66,6 @@ __declspec(dllimport) void* __stdcall GetCurrentProcess(void);
#else
# include <signal.h>
#endif
-#ifdef ANDROID
-# include <android/log.h>
-#endif
/*
* MOZ_STATIC_ASSERT may be used to assert a condition *at compile time* in C.
@@ -158,33 +155,22 @@ static MOZ_COLD MOZ_ALWAYS_INLINE void
MOZ_ReportAssertionFailure(const char* aStr, const char* aFilename, int aLine)
MOZ_PRETEND_NORETURN_FOR_STATIC_ANALYSIS
{
-#ifdef ANDROID
- __android_log_print(ANDROID_LOG_FATAL, "MOZ_Assert",
- "Assertion failure: %s, at %s:%d\n",
- aStr, aFilename, aLine);
-#else
fprintf(stderr, "Assertion failure: %s, at %s:%d\n", aStr, aFilename, aLine);
#if defined (MOZ_DUMP_ASSERTION_STACK)
nsTraceRefcnt::WalkTheStack(stderr);
#endif
fflush(stderr);
-#endif
}
static MOZ_COLD MOZ_ALWAYS_INLINE void
MOZ_ReportCrash(const char* aStr, const char* aFilename, int aLine)
MOZ_PRETEND_NORETURN_FOR_STATIC_ANALYSIS
{
-#ifdef ANDROID
- __android_log_print(ANDROID_LOG_FATAL, "MOZ_CRASH",
- "Hit MOZ_CRASH(%s) at %s:%d\n", aStr, aFilename, aLine);
-#else
fprintf(stderr, "Hit MOZ_CRASH(%s) at %s:%d\n", aStr, aFilename, aLine);
#if defined(MOZ_DUMP_ASSERTION_STACK)
nsTraceRefcnt::WalkTheStack(stderr);
#endif
fflush(stderr);
-#endif
}
/**