odintrin.h: don't reimplement 'assert'

Change-Id: Ia320837c5b86b0707480c99a046bc484dd3aa873
diff --git a/av1/common/odintrin.c b/av1/common/odintrin.c
index 868efac..7584b2e 100644
--- a/av1/common/odintrin.c
+++ b/av1/common/odintrin.c
@@ -13,16 +13,6 @@
 
 #include "av1/common/odintrin.h"
 
-#if defined(OD_ENABLE_ASSERTIONS)
-# include <stdio.h>
-
-void od_fatal_impl(const char *_str, const char *_file, int _line) {
-  fprintf(stderr, "Fatal (internal) error in %s, line %d: %s\n",
-   _file, _line, _str);
-  abort();
-}
-#endif
-
 /*Constants for use with OD_DIVU_SMALL().
   See \cite{Rob05} for details on computing these constants.
   @INPROCEEDINGS{Rob05,
diff --git a/av1/common/odintrin.h b/av1/common/odintrin.h
index 2617a1b..99ff85d 100644
--- a/av1/common/odintrin.h
+++ b/av1/common/odintrin.h
@@ -74,10 +74,6 @@
 # define OD_DISABLE_CFL (1)
 # define OD_DISABLE_FILTER (1)
 
-#if !defined(NDEBUG)
-# define OD_ENABLE_ASSERTIONS (1)
-#endif
-
 # define OD_LOG(a)
 # define OD_LOG_PARTIAL(a)
 
@@ -134,24 +130,7 @@
 #define OD_ARG_NONNULL(x)
 #endif
 
-#if defined(OD_ENABLE_ASSERTIONS)
-#if OD_GNUC_PREREQ(2, 5, 0)
-__attribute__((noreturn))
-#endif
-void od_fatal_impl(const char *_str, const char *_file, int _line);
-
-#define OD_FATAL(_str) (od_fatal_impl(_str, __FILE__, __LINE__))
-
-#define OD_ASSERT(_cond)                     \
-  do {                                       \
-    if (!(_cond)) {                          \
-      OD_FATAL("assertion failed: " #_cond); \
-    }                                        \
-  } while (0)
-
-#else
-#define OD_ASSERT(_cond)
-#endif
+#define OD_ASSERT(_cond) assert(_cond)
 
 /** Copy n elements of memory from src to dst. The 0* term provides
     compile-time type checking  */