Skip to content

Commit d96ca41

Browse files
authored
gh-103735: Tkinter: remove handling for uninteresting "procbody" Tcl value type (GH-103736)
1 parent 579100f commit d96ca41

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Modules/_tkinter.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ typedef struct {
317317
const Tcl_ObjType *WideIntType;
318318
const Tcl_ObjType *BignumType;
319319
const Tcl_ObjType *ListType;
320-
const Tcl_ObjType *ProcBodyType;
321320
const Tcl_ObjType *StringType;
322321
} TkappObject;
323322

@@ -595,7 +594,6 @@ Tkapp_New(const char *screenName, const char *className,
595594
v->WideIntType = Tcl_GetObjType("wideInt");
596595
v->BignumType = Tcl_GetObjType("bignum");
597596
v->ListType = Tcl_GetObjType("list");
598-
v->ProcBodyType = Tcl_GetObjType("procbody");
599597
v->StringType = Tcl_GetObjType("string");
600598

601599
/* Delete the 'exit' command, which can screw things up */
@@ -1175,10 +1173,6 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
11751173
return result;
11761174
}
11771175

1178-
if (value->typePtr == tkapp->ProcBodyType) {
1179-
/* fall through: return tcl object. */
1180-
}
1181-
11821176
if (value->typePtr == tkapp->StringType) {
11831177
return unicodeFromTclObj(value);
11841178
}

0 commit comments

Comments
 (0)