diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-25 17:02:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 17:02:12 (GMT) |
commit | 188000ae4b486cfffaeaa0a06902e4844d1b2bbc (patch) | |
tree | 079964a1cfcb5a749a306391884031cfc9c555d3 /Python/import.c | |
parent | 1c8fe9bdb624d356643ee569151a9e4f2963179a (diff) | |
download | cpython-188000ae4b486cfffaeaa0a06902e4844d1b2bbc.zip cpython-188000ae4b486cfffaeaa0a06902e4844d1b2bbc.tar.gz cpython-188000ae4b486cfffaeaa0a06902e4844d1b2bbc.tar.bz2 |
Remove unused internal _PyImport_GetModuleId() function (#107235)
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/import.c b/Python/import.c index cf993cb..f8cae64 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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) { |