summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-12 22:57:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-12-12 22:57:30 (GMT)
commitb411de22bdd3186e8ceb610dec1d2176cf0835f9 (patch)
treecf60eeb3a7b5869ecf667fe8966c91ae3d3b16f2 /generic/tkImgPhoto.c
parent593fb1f05420b615597cedfee5793c22b86f32ee (diff)
downloadtk-b411de22bdd3186e8ceb610dec1d2176cf0835f9.zip
tk-b411de22bdd3186e8ceb610dec1d2176cf0835f9.tar.gz
tk-b411de22bdd3186e8ceb610dec1d2176cf0835f9.tar.bz2
Variable 'j' no longer needed
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 664d9e0..788d5de 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -1810,12 +1810,12 @@ ImgPhotoConfigureModel(
Tcl_Obj *oldData, *data = NULL, *oldFormat, *format = NULL;
Tcl_Obj *tempdata, *tempformat;
size_t length;
- int i, j, result, imageWidth, imageHeight, oldformat;
+ int i, result, imageWidth, imageHeight, oldformat;
double oldGamma;
Tcl_Channel chan;
Tk_PhotoImageFormat *imageFormat;
- for (i = 0, j = 0; i < objc; i++,j++) {
+ for (i = 0; i < objc; i++) {
const char *arg = Tcl_GetString(objv[i]);
length = objv[i]->length;
if ((length > 1) && (arg[0] == '-')) {
@@ -1823,7 +1823,6 @@ ImgPhotoConfigureModel(
!strncmp(arg, "-data", length)) {
if (++i < objc) {
data = objv[i];
- j--;
} else {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"value for \"-data\" missing", -1));
@@ -1835,7 +1834,6 @@ ImgPhotoConfigureModel(
!strncmp(arg, "-format", length)) {
if (++i < objc) {
format = objv[i];
- j--;
} else {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"value for \"-format\" missing", -1));