diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-11 20:48:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-11 20:48:25 (GMT) |
commit | b19444fecac0fd38ef9647ad6e4efb4fb58893a6 (patch) | |
tree | 3c74461a310471161d7b5f2f5887599dca24ce91 /Mac/Python/macgetpath.c | |
parent | 8ab04b4d65586829887822a78d038a33ee7a69fd (diff) | |
download | cpython-b19444fecac0fd38ef9647ad6e4efb4fb58893a6.zip cpython-b19444fecac0fd38ef9647ad6e4efb4fb58893a6.tar.gz cpython-b19444fecac0fd38ef9647ad6e4efb4fb58893a6.tar.bz2 |
Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
Diffstat (limited to 'Mac/Python/macgetpath.c')
-rw-r--r-- | Mac/Python/macgetpath.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c index b79e90b..dfb689e 100644 --- a/Mac/Python/macgetpath.c +++ b/Mac/Python/macgetpath.c @@ -63,10 +63,6 @@ PERFORMANCE OF THIS SOFTWARE. #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 @@ PyMac_OpenPrefFile() 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 @@ PyMac_PreferenceOptions(PyMac_PrefRecord *pr) 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 */ |