Remove unused internal _PyImport_GetModuleId() function (#107235)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user