Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macgetpath.c @ 22958:5f2dcdd09329 legacy-trunk
Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 11 Apr 2002 20:48:25 +0000 |
| parents | 274aa91b417c |
| children | 1598a1e473e2 |
line wrap: on
line diff
--- a/Mac/Python/macgetpath.c Thu Apr 11 20:46:23 2002 +0000 +++ b/Mac/Python/macgetpath.c Thu Apr 11 20:48:25 2002 +0000 @@ -63,10 +63,6 @@ #include <TextUtils.h> #include <Dialogs.h> -#ifdef USE_GUSI1 -#include <GUSI.h> -#endif - #ifndef USE_BUILTIN_PATH staticforward char *PyMac_GetPythonPath(); #endif @@ -211,11 +207,6 @@ return -1; prefrh = FSpOpenResFile(&dirspec, fsRdWrShPerm); if ( prefrh < 0 ) { -#if 0 - action = CautionAlert(NOPREFFILE_ID, NULL); - if ( action == NOPREFFILE_NO ) - exit(1); -#endif FSpCreateResFile(&dirspec, 'Pyth', 'pref', 0); prefrh = FSpOpenResFile(&dirspec, fsRdWrShPerm); if ( prefrh == -1 ) { @@ -453,28 +444,3 @@ if ( prefrh != -1) CloseResFile(prefrh); UseResFile(oldrh); } - -#ifdef USE_GUSI1 -void -PyMac_SetGUSIOptions() -{ - Handle h; - short oldrh, prefrh = -1; - - oldrh = CurResFile(); - - /* Try override from the application resource fork */ - UseResFile(PyMac_AppRefNum); - h = Get1Resource('GU\267I', GUSIOPTIONSOVERRIDE_ID); - UseResFile(oldrh); - - /* If that didn't work try nonoverride from anywhere */ - if ( h == NULL ) { - prefrh = PyMac_OpenPrefFile(); - h = GetResource('GU\267I', GUSIOPTIONS_ID); - } - if ( h ) GUSILoadConfiguration(h); - if ( prefrh != -1) CloseResFile(prefrh); - UseResFile(oldrh); -} -#endif /* USE_GUSI1 */
