summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-08-27 15:47:41 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-08-27 15:47:41 (GMT)
commite361b905f57a0c438db0275dcb1db6d184ad3f70 (patch)
tree09d9eb020b76a49765213a2267106580201c3ebe
parentfabad1cb98ecd55d011806c07798b097caabfd19 (diff)
downloadtk-e361b905f57a0c438db0275dcb1db6d184ad3f70.zip
tk-e361b905f57a0c438db0275dcb1db6d184ad3f70.tar.gz
tk-e361b905f57a0c438db0275dcb1db6d184ad3f70.tar.bz2
Removed unused variable [Bug 664783]
-rw-r--r--ChangeLog5
-rw-r--r--generic/tkListbox.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 97e6222..7aec673 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-27 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+
+ * generic/tkListbox.c (ListboxSelect): Remove unused variable
+ 'increment'. [Bug 664783]
+
2003-08-25 David Gravereaux <davygrvy@pobox.com>
* win/makefile.vc: Don't do a string compare on the $(DBGX)
diff --git a/generic/tkListbox.c b/generic/tkListbox.c
index 78977d6..6403a71 100644
--- a/generic/tkListbox.c
+++ b/generic/tkListbox.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkListbox.c,v 1.29 2003/02/25 02:07:25 hobbs Exp $
+ * RCS: @(#) $Id: tkListbox.c,v 1.30 2003/08/27 15:47:41 dkf Exp $
*/
#include "tkPort.h"
@@ -2941,7 +2941,7 @@ ListboxSelect(listPtr, first, last, select)
int select; /* 1 means select items, 0 means
* deselect them. */
{
- int i, firstRedisplay, increment, oldCount;
+ int i, firstRedisplay, oldCount;
Tcl_HashEntry *entry;
int new;
@@ -2961,7 +2961,6 @@ ListboxSelect(listPtr, first, last, select)
}
oldCount = listPtr->numSelected;
firstRedisplay = -1;
- increment = select ? 1 : -1;
/*
* For each index in the range, find it in our selection hash table.