[patch] Fix #347084
Jerry Quinn
jlquinn at optonline.net
Sun Dec 3 01:27:15 EST 2006
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 <jlquinn at optonline.net>
* 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 ) {
More information about the gnucash-devel
mailing list