diff --git a/generic/tkEvent.c b/generic/tkEvent.c index 1231a9722..a3d7150aa 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -990,40 +990,6 @@ Tk_DeleteClientMessageHandler( } } -/* - *---------------------------------------------------------------------- - * - * TkEventInit -- - * - * This functions initializes all the event module structures used by the - * current thread. It must be called before any other function in this - * file is called. - * - * Results: - * None. - * - * Side Effects: - * None. - * - *---------------------------------------------------------------------- - */ - -void -TkEventInit(void) -{ - ThreadSpecificData *tsdPtr = (ThreadSpecificData *) - Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - - tsdPtr->handlersActive = 0; - tsdPtr->pendingPtr = NULL; - tsdPtr->genericList = NULL; - tsdPtr->lastGenericPtr = NULL; - tsdPtr->cmList = NULL; - tsdPtr->lastCmPtr = NULL; - tsdPtr->restrictProc = NULL; - tsdPtr->restrictArg = NULL; -} - /* *---------------------------------------------------------------------- * diff --git a/generic/tkInt.h b/generic/tkInt.h index 72552894e..56f61fea3 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -1280,7 +1280,6 @@ MODULE_SCOPE int TkSetGeometryContainer(Tcl_Interp *interp, MODULE_SCOPE void TkFreeGeometryContainer(Tk_Window tkwin, const char *name); -MODULE_SCOPE void TkEventInit(void); MODULE_SCOPE void TkRegisterObjTypes(void); MODULE_SCOPE Tcl_ObjCmdProc TkDeadAppObjCmd; MODULE_SCOPE int TkCanvasGetCoordObj(Tcl_Interp *interp, diff --git a/generic/tkWindow.c b/generic/tkWindow.c index bba87d080..b860d0c61 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -886,7 +886,6 @@ TkCreateMainWindow( mainPtr->interp = interp; Tcl_InitHashTable(&mainPtr->nameTable, TCL_STRING_KEYS); mainPtr->deletionEpoch = 0l; - TkEventInit(); TkBindInit(mainPtr); TkFontPkgInit(mainPtr); TkStylePkgInit(mainPtr);