Hi, all.  This is my first patch, so I thought I'd start with a (hopefully) 
trivial fix.  Count and total are unused vars, so deleting the code below is 
valid - unless the code to use them has gone missing for some reason.

Jerry



2006-12-03  Jerry Quinn  <[EMAIL PROTECTED]>

        * src/gnome/dialog-sxsincelast.c: Remove unused variables and dead      
        code.

Index: dialog-sxsincelast.c
===================================================================
--- dialog-sxsincelast.c        (revision 15170)
+++ dialog-sxsincelast.c        (working copy)
@@ -1790,15 +1790,7 @@
          toCreateTuple *tct;
          toCreateInstance *tci;
          GList *instances;
-        int count, total;

-        count = 0;
-        total = 0;
-        /* get an accurate count of how many SX instances we're going to
-         * create. */
-        for ( l = autoCreateList; l; l = l->next ) {
-                total += g_list_length( 
((toCreateTuple*)l->data)->instanceList );
-        }
          gnc_suspend_gui_refresh();

          for ( ; autoCreateList ; autoCreateList = autoCreateList->next ) {
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to