summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-10-20 17:54:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-10-20 17:54:47 (GMT)
commitd7ad9bc43170b443a5c667ad0338873cebda5ced (patch)
tree3336429c96e95d49f535386b99a64a05701fa7d9 /generic
parentd3c6e22da28dddf8b1f028900647c9221ffcd64a (diff)
downloadtcl-d7ad9bc43170b443a5c667ad0338873cebda5ced.zip
tcl-d7ad9bc43170b443a5c667ad0338873cebda5ced.tar.gz
tcl-d7ad9bc43170b443a5c667ad0338873cebda5ced.tar.bz2
EVIL HACKs are bad. Unnecessary ones are intolerable. Bad tests cause trouble.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclCompCmds.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c
index 3ab03cc..7dba232 100644
--- a/generic/tclCompCmds.c
+++ b/generic/tclCompCmds.c
@@ -3206,17 +3206,6 @@ TclCompileFormatCmd(
*/
TclEmitInstInt1(INST_STR_CONCAT1, i, envPtr);
- } else {
- /*
- * EVIL HACK! Force there to be a string representation in the case
- * where there's just a "%s" in the format; case covered by the test
- * format-20.1 (and it is horrible...)
- */
-
- TclEmitOpcode(INST_DUP, envPtr);
- PushStringLiteral(envPtr, "");
- TclEmitOpcode(INST_STR_EQ, envPtr);
- TclEmitOpcode(INST_POP, envPtr);
}
return TCL_OK;
}