@@ -31,54 +31,9 @@ Tcl_AppInit(Tcl_Interp *interp)
3131 const char * _tkinter_tk_failed ;
3232#endif
3333
34- #ifdef TK_AQUA
35- #ifndef MAX_PATH_LEN
36- #define MAX_PATH_LEN 1024
37- #endif
38- char tclLibPath [MAX_PATH_LEN ], tkLibPath [MAX_PATH_LEN ];
39- Tcl_Obj * pathPtr ;
40-
41- /* pre- Tcl_Init code copied from tkMacOSXAppInit.c */
42- Tk_MacOSXOpenBundleResources (interp , "com.tcltk.tcllibrary" ,
43- tclLibPath , MAX_PATH_LEN , 0 );
44-
45- if (tclLibPath [0 ] != '\0' ) {
46- Tcl_SetVar (interp , "tcl_library" , tclLibPath , TCL_GLOBAL_ONLY );
47- Tcl_SetVar (interp , "tclDefaultLibrary" , tclLibPath , TCL_GLOBAL_ONLY );
48- Tcl_SetVar (interp , "tcl_pkgPath" , tclLibPath , TCL_GLOBAL_ONLY );
49- }
50-
51- if (tclLibPath [0 ] != '\0' ) {
52- Tcl_SetVar (interp , "tcl_library" , tclLibPath , TCL_GLOBAL_ONLY );
53- Tcl_SetVar (interp , "tclDefaultLibrary" , tclLibPath , TCL_GLOBAL_ONLY );
54- Tcl_SetVar (interp , "tcl_pkgPath" , tclLibPath , TCL_GLOBAL_ONLY );
55- }
56- #endif
5734 if (Tcl_Init (interp ) == TCL_ERROR )
5835 return TCL_ERROR ;
5936
60- #ifdef TK_AQUA
61- /* pre- Tk_Init code copied from tkMacOSXAppInit.c */
62- Tk_MacOSXOpenBundleResources (interp , "com.tcltk.tklibrary" ,
63- tkLibPath , MAX_PATH_LEN , 1 );
64-
65- if (tclLibPath [0 ] != '\0' ) {
66- pathPtr = Tcl_NewStringObj (tclLibPath , -1 );
67- } else {
68- Tcl_Obj * pathPtr = TclGetLibraryPath ();
69- }
70-
71- if (tkLibPath [0 ] != '\0' ) {
72- Tcl_Obj * objPtr ;
73-
74- Tcl_SetVar (interp , "tk_library" , tkLibPath , TCL_GLOBAL_ONLY );
75- objPtr = Tcl_NewStringObj (tkLibPath , -1 );
76- Tcl_ListObjAppendElement (NULL , pathPtr , objPtr );
77- }
78-
79- TclSetLibraryPath (pathPtr );
80- #endif
81-
8237#ifdef WITH_XXX
8338 /* Initialize modules that don't require Tk */
8439#endif
@@ -112,11 +67,6 @@ Tcl_AppInit(Tcl_Interp *interp)
11267
11368 Tk_MainWindow (interp );
11469
115- #ifdef TK_AQUA
116- TkMacOSXInitAppleEvents (interp );
117- TkMacOSXInitMenus (interp );
118- #endif
119-
12070#ifdef WITH_PIL /* 0.2b5 and later -- not yet released as of May 14 */
12171 {
12272 extern void TkImaging_Init (Tcl_Interp * );
0 commit comments