diff options
| author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-09-07 22:02:08 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-07 22:02:08 (GMT) |
| commit | 4e4bfffe2ded7339663945ad4c494db0e88ec96c (patch) | |
| tree | fd0af2d3464ae3de99304faad2e5baaedec0f6f9 /Objects/object.c | |
| parent | b65686c50563c5f64b4eb6e684807c6ab6089523 (diff) | |
| download | cpython-4e4bfffe2ded7339663945ad4c494db0e88ec96c.zip cpython-4e4bfffe2ded7339663945ad4c494db0e88ec96c.tar.gz cpython-4e4bfffe2ded7339663945ad4c494db0e88ec96c.tar.bz2 | |
GH-90699: use statically allocated interned strings in typeobject's slotdefs (GH-94706)
Diffstat (limited to 'Objects/object.c')
| -rw-r--r-- | Objects/object.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Objects/object.c b/Objects/object.c index 9bbe0ee..69f7834 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -14,7 +14,6 @@ #include "pycore_pymem.h" // _PyMem_IsPtrFreed() #include "pycore_pystate.h" // _PyThreadState_GET() #include "pycore_symtable.h" // PySTEntry_Type -#include "pycore_typeobject.h" // _PyTypes_InitSlotDefs() #include "pycore_unionobject.h" // _PyUnion_Type #include "pycore_interpreteridobject.h" // _PyInterpreterID_Type @@ -1835,23 +1834,6 @@ PyObject _Py_NotImplementedStruct = { 1, &_PyNotImplemented_Type }; -PyStatus -_PyTypes_InitState(PyInterpreterState *interp) -{ - if (!_Py_IsMainInterpreter(interp)) { - return _PyStatus_OK(); - } - - PyStatus status = _PyTypes_InitSlotDefs(); - if (_PyStatus_EXCEPTION(status)) { - return status; - } - - return _PyStatus_OK(); -} - - - #ifdef MS_WINDOWS extern PyTypeObject PyHKEY_Type; #endif |
