mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Remove unused internal _PyImport_GetModuleId() function (#107235)
This commit is contained in:
		
							parent
							
								
									1c8fe9bdb6
								
							
						
					
					
						commit
						188000ae4b
					
				
					 2 changed files with 0 additions and 12 deletions
				
			
		|  | @ -9,7 +9,6 @@ extern "C" { | |||
| 
 | ||||
| extern int _PyImport_IsInitialized(PyInterpreterState *); | ||||
| 
 | ||||
| extern PyObject* _PyImport_GetModuleId(_Py_Identifier *name); | ||||
| PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module); | ||||
| extern int _PyImport_SetModuleString(const char *name, PyObject* module); | ||||
| 
 | ||||
|  |  | |||
|  | @ -210,17 +210,6 @@ PyImport_GetModuleDict(void) | |||
|     return MODULES(interp); | ||||
| } | ||||
| 
 | ||||
| // This is only kept around for extensions that use _Py_IDENTIFIER.
 | ||||
| PyObject * | ||||
| _PyImport_GetModuleId(_Py_Identifier *nameid) | ||||
| { | ||||
|     PyObject *name = _PyUnicode_FromId(nameid); /* borrowed */ | ||||
|     if (name == NULL) { | ||||
|         return NULL; | ||||
|     } | ||||
|     return PyImport_GetModule(name); | ||||
| } | ||||
| 
 | ||||
| int | ||||
| _PyImport_SetModule(PyObject *name, PyObject *m) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner