Test coverage - Almost all of score.c
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index b6230ec618454ede5a1d3dfb11fe97faf5697060..28bd960f39ba314fdfca79da4b799ec351ba114f 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -21,16 +21,6 @@ void* xmalloc(size_t size)
     return (ptr);
 }
 
-char* xstrdup(const char* s)
-{
-    char* ptr = strdup(s);
-    if (ptr == NULL) {
-        fprintf(stderr, "Out of memory!\n");
-        exit(EXIT_FAILURE);
-    }
-    return (ptr);
-}
-
 void packed_to_token(long packed, char token[6])
 {
     // Unpack and map back to ASCII.