summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-30 06:10:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-30 06:10:23 (GMT)
commit9eb5b14a3c8a078ee645a69b398cc03579126c05 (patch)
treeb6fa9e83c87d4f4b67a3fb19bf6f41d746b186a7
parent0f632bd1c57894dc565aff76d1258d88d5d60aaa (diff)
downloadtcl-9eb5b14a3c8a078ee645a69b398cc03579126c05.zip
tcl-9eb5b14a3c8a078ee645a69b398cc03579126c05.tar.gz
tcl-9eb5b14a3c8a078ee645a69b398cc03579126c05.tar.bz2
remove useless save/restore
-rw-r--r--generic/tclEncoding.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 012c954..1536f98 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -1241,7 +1241,6 @@ Tcl_ExternalToUtf(
dstLen--;
}
do {
- int savedFlags = flags;
Tcl_EncodingState savedState = *statePtr;
result = encodingPtr->toUtfProc(encodingPtr->clientData, src, srcLen,
@@ -1251,7 +1250,6 @@ Tcl_ExternalToUtf(
break;
}
dstLen = Tcl_UtfAtIndex(dst, maxChars) - dst + (TCL_UTF_MAX - 1);
- flags = savedFlags;
*statePtr = savedState;
} while (1);
if (!noTerminate) {