File tree 4 files changed +135
-188
lines changed
4 files changed +135
-188
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 * );
@@ -39,8 +38,6 @@ struct type_cache {
39
38
#endif
40
39
};
41
40
42
- extern PyStatus _PyTypes_InitSlotDefs (void );
43
-
44
41
extern void _PyStaticType_Dealloc (PyTypeObject * type );
45
42
46
43
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
@@ -1818,23 +1817,6 @@ PyObject _Py_NotImplementedStruct = {
1818
1817
1 , & _PyNotImplemented_Type
1819
1818
};
1820
1819
1821
- PyStatus
1822
- _PyTypes_InitState (PyInterpreterState * interp )
1823
- {
1824
- if (!_Py_IsMainInterpreter (interp )) {
1825
- return _PyStatus_OK ();
1826
- }
1827
-
1828
- PyStatus status = _PyTypes_InitSlotDefs ();
1829
- if (_PyStatus_EXCEPTION (status )) {
1830
- return status ;
1831
- }
1832
-
1833
- return _PyStatus_OK ();
1834
- }
1835
-
1836
-
1837
-
1838
1820
#ifdef MS_WINDOWS
1839
1821
extern PyTypeObject PyHKEY_Type ;
1840
1822
#endif
You can’t perform that action at this time.
0 commit comments