summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-07-20 22:02:36 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-07-20 22:02:36 (GMT)
commit43a00ce83a4761da0f7f3563a7bbc0eb872904e1 (patch)
tree3ba82ab837c22df5e44f381d1fa2f4dd661f4e40 /generic/tclDictObj.c
parent733fa2bc19cbecd2c014a1183310bf2640469aa2 (diff)
downloadtcl-43a00ce83a4761da0f7f3563a7bbc0eb872904e1.zip
tcl-43a00ce83a4761da0f7f3563a7bbc0eb872904e1.tar.gz
tcl-43a00ce83a4761da0f7f3563a7bbc0eb872904e1.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 a33802d..c74f10f 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.56 2007/12/13 15:23:16 dgp Exp $
+ * RCS: @(#) $Id: tclDictObj.c,v 1.56.2.1 2008/07/20 22:02:37 dkf Exp $
*/
#include "tclInt.h"
@@ -588,15 +588,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.
*/