r23369 - gnucash/trunk/src/gnome-utils - Remove dead code.

John Ralls jralls at code.gnucash.org
Sat Nov 2 16:50:56 EDT 2013


Author: jralls
Date: 2013-11-02 16:50:56 -0400 (Sat, 02 Nov 2013)
New Revision: 23369
Trac: http://svn.gnucash.org/trac/changeset/23369

Modified:
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Remove dead code.

Unsigned ints can't be less than 0.

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-11-02 20:50:44 UTC (rev 23368)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-11-02 20:50:56 UTC (rev 23369)
@@ -1133,13 +1133,6 @@
     GtkWidget *label;
     gchar *timeoutstr = NULL;
 
-    if (secs_to_save < 0)
-    {
-        PWARN ("Count down aborted - timer reached a negative value.\n"
-               "This is probably because the timer was improperly initialized.");
-        return FALSE; /* remove timer */
-    }
-
     /* Stop count down if user closed the dialog since the last time we were called */
     if (!GTK_IS_DIALOG (dialog))
         return FALSE; /* remove timer */



More information about the gnucash-changes mailing list