Remove test_strftime() that was mistakenly included in previous commits.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 12 May 2014 16:48:47 +0000 (18:48 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 12 May 2014 16:48:47 +0000 (18:48 +0200)
src/main.c

index e042115..26c7e18 100644 (file)
@@ -958,28 +958,6 @@ static void reset_statistics(void)
        session_stats.time_started = time(NULL);
 }
 
-static void test_strftime(void)
-{
-       int i;
-       char buf[64];
-       time_t dummy = time(NULL);
-       struct tm tbuf;
-       struct tm *lt = localtime_r(&dummy, &tbuf);
-
-       {
-       START_TIMING("fast_strftime");
-       for (i = 0; i < 100000; i++)
-               fast_strftime(buf, 64, "%x %X %r", lt);
-       END_TIMING();
-       }
-       {
-       START_TIMING("strftime");
-       for (i = 0; i < 100000; i++)
-               strftime(buf, 64, "%x %X %r", lt);
-       END_TIMING();
-       }
-}
-
 int main(int argc, char *argv[])
 {
 #ifdef HAVE_DBUS_GLIB
@@ -1574,7 +1552,6 @@ int main(int argc, char *argv[])
 
        END_TIMING();
 
-       test_strftime();
        gtk_main();
 
 #ifdef HAVE_NETWORKMANAGER_SUPPORT