[glib: 1/4] tests: Drop dead code from GDateTime test




commit 6fcc4db22806a679a5d40b7864abc47a535c3702
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Nov 23 16:43:31 2020 +0000

    tests: Drop dead code from GDateTime test
    
    Spotted by `scan-build`.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 glib/tests/gdatetime.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index 132f7304c..14d13db66 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -1526,12 +1526,6 @@ GDateTime *__dt = g_date_time_new_local (2009, 10, 24, 0, 0, 0);\
   get_localtime_tm (t, &tt);
   strftime (dst, sizeof(dst), "%Z", &tt);
 
-  /* get current time_t for 20090924 in the local timezone */
-  tt.tm_sec = 0;
-  tt.tm_min = 0;
-  tt.tm_hour = 0;
-  t = mktime (&tt);
-
   TEST_PRINTF ("%a", "Sat");
   TEST_PRINTF ("%A", "Saturday");
   TEST_PRINTF ("%b", "Oct");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]