summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-07-20 17:55:37 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-07-20 17:55:37 (GMT)
commitde532c94fa09b0520a3bba6eaa50d3f9f57b8000 (patch)
tree57b34596857bc91b086de0279a1353e7cbecaa4a /generic/tclDictObj.c
parent9626da61ad1682531ef02f2c327a9d7c274ac7dd (diff)
downloadtcl-de532c94fa09b0520a3bba6eaa50d3f9f57b8000.zip
tcl-de532c94fa09b0520a3bba6eaa50d3f9f57b8000.tar.gz
tcl-de532c94fa09b0520a3bba6eaa50d3f9f57b8000.tar.bz2
Fix [Bug 2008248] and make dict->list->dict round trip efficient to boot.
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 2694cf8..eb56e4a 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclDictObj.c,v 1.65 2008/07/19 22:50:42 nijtmans Exp $
+ * RCS: @(#) $Id: tclDictObj.c,v 1.66 2008/07/20 17:55:50 dkf Exp $
*/
#include "tclInt.h"
@@ -593,15 +593,6 @@ SetDictFromAny(
}
/*
- * If the list is shared its string rep must not be lost so it still
- * is the same list.
- */
-
- if (Tcl_IsShared(objPtr)) {
- (void) TclGetString(objPtr);
- }
-
- /*
* Build the hash of key/value pairs.
*/