Replace datime() with just time().
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index b71969e2918dcd32f7f695753b33bdb2d889d921..51760b5aaf4d8fd82968d32a37efa70b92daba1b 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -187,7 +187,7 @@ void vspeak(const char* msg, va_list ap)
         } else {
             long arg = va_arg(ap, long);
             if (arg == -1)
-                arg = 0;
+                arg = 0; // LCOV_EXCL_LINE - don't think we can get here.
             i++;
             // Integer specifier. In order to accommodate the fact
             // that PARMS can have both legitimate integers *and*
@@ -680,14 +680,6 @@ void make_zzword(char zzword[6])
     zzword[5] = '\0';
 }
 
-void datime(long* d, long* t)
-{
-    struct timeval tv;
-    gettimeofday(&tv, NULL);
-    *d = (long) tv.tv_sec;
-    *t = (long) tv.tv_usec;
-}
-
 // LCOV_EXCL_START
 void bug(enum bugtype num, const char *error_string)
 {