summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-02-18 21:53:59 (GMT)
committerhobbs <hobbs>2003-02-18 21:53:59 (GMT)
commit2eec0142e43cf37b370611573d0a5ff58d1e0e2c (patch)
tree997084567df13e5d1b1a4b6253ceab89f4a61fbd /generic
parentb58d9a92e0f2a8fb49c953f34ef2419510f22cc1 (diff)
downloadtk-2eec0142e43cf37b370611573d0a5ff58d1e0e2c.zip
tk-2eec0142e43cf37b370611573d0a5ff58d1e0e2c.tar.gz
tk-2eec0142e43cf37b370611573d0a5ff58d1e0e2c.tar.bz2
(TextWidgetCmd): remove unused lastEnd var. [Bug #664790]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkText.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 58b55a9..6bed713 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.c,v 1.32 2002/10/02 21:23:10 hobbs Exp $
+ * RCS: @(#) $Id: tkText.c,v 1.33 2003/02/18 21:53:59 hobbs Exp $
*/
#include "default.h"
@@ -618,7 +618,7 @@ TextWidgetCmd(clientData, interp, argc, argv)
* handle partial and fully overlapping ranges. We have to
* do this with multiple passes.
*/
- TkTextIndex *indices, *ixStart, *ixEnd, *lastStart, *lastEnd;
+ TkTextIndex *indices, *ixStart, *ixEnd, *lastStart;
char *useIdx;
argc -= 2;
@@ -653,7 +653,7 @@ TextWidgetCmd(clientData, interp, argc, argv)
*/
qsort((VOID *) indices, (unsigned) (argc / 2),
2 * sizeof(TkTextIndex), TextIndexSortProc);
- lastStart = lastEnd = NULL;
+ lastStart = NULL;
/*
* Second pass will handle bogus ranges (end < start) and
* overlapping ranges.
@@ -684,7 +684,6 @@ TextWidgetCmd(clientData, interp, argc, argv)
}
}
lastStart = ixStart;
- lastEnd = ixEnd;
useIdx[i] = 1;
}
/*