Bug 1469769 - Part 7: Remove NS_NOTREACHED definition. r?froydnj draft
authorChris Peterson <cpeterson@mozilla.com>
Sun, 17 Jun 2018 22:34:23 -0700
changeset 808632 c4ee4ad88cdfa10f07b00581a3aa313f9d9a1b11
parent 808631 b0b946b29ef097ba39a2e988aab8e8bd547d367e
push id113444
push usercpeterson@mozilla.com
push dateWed, 20 Jun 2018 07:17:30 +0000
reviewersfroydnj
bugs1469769
milestone62.0a1
Bug 1469769 - Part 7: Remove NS_NOTREACHED definition. r?froydnj MozReview-Commit-ID: IwzSGKF3Osk
xpcom/base/nsDebug.h
--- 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)