File tree 5 files changed +140
-176
lines changed
5 files changed +140
-176
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ extern "C" {
11
11
12
12
/* runtime lifecycle */
13
13
14
- extern PyStatus _PyTypes_InitState (PyInterpreterState * );
15
14
extern PyStatus _PyTypes_InitTypes (PyInterpreterState * );
16
15
extern void _PyTypes_FiniTypes (PyInterpreterState * );
17
16
extern void _PyTypes_Fini (PyInterpreterState * );
@@ -67,8 +66,6 @@ struct types_state {
67
66
};
68
67
69
68
70
- extern PyStatus _PyTypes_InitSlotDefs (void );
71
-
72
69
extern int _PyStaticType_InitBuiltin (PyTypeObject * type );
73
70
extern static_builtin_state * _PyStaticType_GetState (PyTypeObject * );
74
71
extern void _PyStaticType_ClearWeakRefs (PyTypeObject * type );
Original file line number Diff line number Diff line change 14
14
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
15
15
#include "pycore_pystate.h" // _PyThreadState_GET()
16
16
#include "pycore_symtable.h" // PySTEntry_Type
17
- #include "pycore_typeobject.h" // _PyTypes_InitSlotDefs()
18
17
#include "pycore_unionobject.h" // _PyUnion_Type
19
18
#include "pycore_interpreteridobject.h" // _PyInterpreterID_Type
20
19
@@ -1835,23 +1834,6 @@ PyObject _Py_NotImplementedStruct = {
1835
1834
1 , & _PyNotImplemented_Type
1836
1835
};
1837
1836
1838
- PyStatus
1839
- _PyTypes_InitState (PyInterpreterState * interp )
1840
- {
1841
- if (!_Py_IsMainInterpreter (interp )) {
1842
- return _PyStatus_OK ();
1843
- }
1844
-
1845
- PyStatus status = _PyTypes_InitSlotDefs ();
1846
- if (_PyStatus_EXCEPTION (status )) {
1847
- return status ;
1848
- }
1849
-
1850
- return _PyStatus_OK ();
1851
- }
1852
-
1853
-
1854
-
1855
1837
#ifdef MS_WINDOWS
1856
1838
extern PyTypeObject PyHKEY_Type ;
1857
1839
#endif
You can’t perform that action at this time.
0 commit comments