From 2eec0142e43cf37b370611573d0a5ff58d1e0e2c Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 18 Feb 2003 21:53:59 +0000 Subject: (TextWidgetCmd): remove unused lastEnd var. [Bug #664790] --- generic/tkText.c | 7 +++---- 1 file 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; } /* -- cgit v0.12