summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-01-17 09:43:01 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-01-17 09:43:01 (GMT)
commit6d7beb6188d7d7314624a05865ba72a78ff3f39c (patch)
tree3a0ecdcb7134a7e2a30accbd9c66a34976e216b0
parentd7080d15ef302b6ef675ab8db43bcbab8ce1b89c (diff)
downloadtcl-bug_272e866f1e.zip
tcl-bug_272e866f1e.tar.gz
tcl-bug_272e866f1e.tar.bz2
remove some dead codebug_272e866f1e
-rw-r--r--generic/tclIO.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 8e0534d..547359b 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -6023,25 +6023,8 @@ ReadBytes(
toRead = srcLen;
}
-#if 0
- dst = (char *) Tcl_GetByteArrayFromObj(objPtr, &length);
- if (toRead > length - offset - 1) {
- /*
- * Double the existing size of the object or make enough room to hold
- * all the characters we may get from the source buffer, whichever is
- * larger.
- */
-
- length = offset * 2;
- if (offset < toRead) {
- length = offset + toRead + 1;
- }
- dst = (char *) Tcl_SetByteArrayLength(objPtr, length);
- }
-#else
TclAppendBytesToByteArray(objPtr, NULL, toRead);
dst = (char *) Tcl_GetByteArrayFromObj(objPtr, &length);
-#endif
dst += offset;
if (GotFlag(statePtr, INPUT_NEED_NL)) {