mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Got rid of ifdefs for long-obsolete GUSI versions and other stuff that is now standard (appearance, interned strings)
This commit is contained in:
		
							parent
							
								
									8ab04b4d65
								
							
						
					
					
						commit
						b19444feca
					
				
					 4 changed files with 0 additions and 197 deletions
				
			
		|  | @ -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 */	 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen