Skip to content

Commit 22d5ae2

Browse files
Drop PyInterpreterID_Type.
1 parent cd66545 commit 22d5ae2

12 files changed

+0
-341
lines changed

Include/cpython/interpreteridobject.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

Include/interpreteridobject.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

Makefile.pre.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ OBJECT_OBJS= \
507507
Objects/floatobject.o \
508508
Objects/frameobject.o \
509509
Objects/funcobject.o \
510-
Objects/interpreteridobject.o \
511510
Objects/iterobject.o \
512511
Objects/listobject.o \
513512
Objects/longobject.o \
@@ -1003,7 +1002,6 @@ PYTHON_HEADERS= \
10031002
$(srcdir)/Include/frameobject.h \
10041003
$(srcdir)/Include/genericaliasobject.h \
10051004
$(srcdir)/Include/import.h \
1006-
$(srcdir)/Include/interpreteridobject.h \
10071005
$(srcdir)/Include/intrcheck.h \
10081006
$(srcdir)/Include/iterobject.h \
10091007
$(srcdir)/Include/listobject.h \
@@ -1077,7 +1075,6 @@ PYTHON_HEADERS= \
10771075
$(srcdir)/Include/cpython/genobject.h \
10781076
$(srcdir)/Include/cpython/import.h \
10791077
$(srcdir)/Include/cpython/initconfig.h \
1080-
$(srcdir)/Include/cpython/interpreteridobject.h \
10811078
$(srcdir)/Include/cpython/listobject.h \
10821079
$(srcdir)/Include/cpython/longintrepr.h \
10831080
$(srcdir)/Include/cpython/longobject.h \

Modules/_testcapimodule.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "_testcapi/parts.h"
1414

1515
#include "frameobject.h" // PyFrame_New()
16-
#include "interpreteridobject.h" // PyInterpreterID_Type
1716
#include "marshal.h" // PyMarshal_WriteLongToFile()
1817

1918
#include <float.h> // FLT_MAX
@@ -1449,12 +1448,6 @@ run_in_subinterp(PyObject *self, PyObject *args)
14491448
return PyLong_FromLong(r);
14501449
}
14511450

1452-
static PyObject *
1453-
get_interpreterid_type(PyObject *self, PyObject *Py_UNUSED(ignored))
1454-
{
1455-
return Py_NewRef(&PyInterpreterID_Type);
1456-
}
1457-
14581451
static PyMethodDef ml;
14591452

14601453
static PyObject *
@@ -3299,7 +3292,6 @@ static PyMethodDef TestMethods[] = {
32993292
{"crash_no_current_thread", crash_no_current_thread, METH_NOARGS},
33003293
{"test_current_tstate_matches", test_current_tstate_matches, METH_NOARGS},
33013294
{"run_in_subinterp", run_in_subinterp, METH_VARARGS},
3302-
{"get_interpreterid_type", get_interpreterid_type, METH_NOARGS},
33033295
{"create_cfunction", create_cfunction, METH_NOARGS},
33043296
{"call_in_temporary_c_thread", call_in_temporary_c_thread, METH_VARARGS,
33053297
PyDoc_STR("set_error_class(error_class) -> None")},

Objects/interpreteridobject.c

Lines changed: 0 additions & 274 deletions
This file was deleted.

Objects/object.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#include "pycore_typevarobject.h" // _PyTypeAlias_Type, _Py_initialize_generic
2424
#include "pycore_unionobject.h" // _PyUnion_Type
2525

26-
#include "interpreteridobject.h" // _PyInterpreterID_Type
27-
2826
#ifdef Py_LIMITED_API
2927
// Prevent recursive call _Py_IncRef() <=> Py_INCREF()
3028
# error "Py_LIMITED_API macro must not be defined"
@@ -2239,7 +2237,6 @@ static PyTypeObject* static_types[] = {
22392237
&PyGen_Type,
22402238
&PyGetSetDescr_Type,
22412239
&PyInstanceMethod_Type,
2242-
&PyInterpreterID_Type,
22432240
&PyListIter_Type,
22442241
&PyListRevIter_Type,
22452242
&PyList_Type,

PCbuild/_freeze_module.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@
142142
<ClCompile Include="..\Objects\funcobject.c" />
143143
<ClCompile Include="..\Objects\genericaliasobject.c" />
144144
<ClCompile Include="..\Objects\genobject.c" />
145-
<ClCompile Include="..\Objects\interpreteridobject.c" />
146145
<ClCompile Include="..\Objects\iterobject.c" />
147146
<ClCompile Include="..\Objects\listobject.c" />
148147
<ClCompile Include="..\Objects\longobject.c" />

PCbuild/_freeze_module.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@
241241
<ClCompile Include="..\Python\lock.c">
242242
<Filter>Source Files</Filter>
243243
</ClCompile>
244-
<ClCompile Include="..\Objects\interpreteridobject.c">
245-
<Filter>Source Files</Filter>
246-
</ClCompile>
247244
<ClCompile Include="..\PC\invalid_parameter_handler.c">
248245
<Filter>Source Files</Filter>
249246
</ClCompile>

0 commit comments

Comments
 (0)