Bug 1469769 - Part 7: Remove NS_NOTREACHED definition. r?froydnj
MozReview-Commit-ID: IwzSGKF3Osk
--- a/xpcom/base/nsDebug.h
+++ b/xpcom/base/nsDebug.h
@@ -101,30 +101,16 @@ inline void MOZ_PretendNoReturn()
MOZ_PretendNoReturn(); \
} \
} while(0)
#else
#define NS_ASSERTION(expr, str) do { /* nothing */ } while(0)
#endif
/**
- * This macros triggers a program failure if executed. It indicates that
- * an attempt was made to execute a codepath which should not be reachable.
- */
-#ifdef DEBUG
-#define NS_NOTREACHED(str) \
- do { \
- NS_DebugBreak(NS_DEBUG_ASSERTION, str, "Not Reached", __FILE__, __LINE__); \
- MOZ_PretendNoReturn(); \
- } while(0)
-#else
-#define NS_NOTREACHED(str) do { /* nothing */ } while(0)
-#endif
-
-/**
* Log an error message.
*/
#ifdef DEBUG
#define NS_ERROR(str) \
do { \
NS_DebugBreak(NS_DEBUG_ASSERTION, str, "Error", __FILE__, __LINE__); \
MOZ_PretendNoReturn(); \
} while(0)