(show_date): Remove now-unnecessary code that
authorJim Meyering <jim@meyering.net>
Tue, 2 Aug 2005 20:44:38 +0000 (20:44 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 2 Aug 2005 20:44:38 +0000 (20:44 +0000)
treated an empty format string as a special case.

src/date.c

index 8eafd09..fc973e7 100644 (file)
@@ -511,11 +511,6 @@ show_date (const char *format, struct timespec when)
          format = *date_fmt ? date_fmt : "%a %b %e %H:%M:%S %Z %Y";
        }
     }
-  else if (*format == '\0')
-    {
-      printf ("\n");
-      return true;
-    }
 
   tm = localtime (&when.tv_sec);
   if (! tm)