Remove more unused code.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 16c6a78d6b30e02d599cba31bafb7caaf90c2a95..a58e461447c1f5701f45f56c5638082ba7ed10ee 100644 (file)
--- a/misc.c
+++ b/misc.c
 #include "linenoise/linenoise.h"
 #include "newdb.h"
 
-void* xmalloc(size_t size)
-{
-  void* ptr = malloc(size);
-  if (ptr == NULL)
-    {
-      fprintf(stderr, "Out of memory!\n");
-      exit(EXIT_FAILURE);
-    }
-  return(ptr);
-}
-
 char* xstrdup(const char* s)
 {
   char* ptr = strdup(s);