Skip to content

Commit 78ae2ba

Browse files
committed
Remove unused negative_dictoffset function
The type this function would create is available as _testcapi.HeapCTypeWithNegativeDict
1 parent fb2101c commit 78ae2ba

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Modules/_testcapi/heaptype.c

-9
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ static struct PyModuleDef *_testcapimodule = NULL; // set at initialization
55

66
/* Tests for heap types (PyType_From*) */
77

8-
static PyType_Spec HeapCTypeWithNegativeDict_spec;
9-
10-
static PyObject *
11-
negative_dictoffset(PyObject *self, PyObject *Py_UNUSED(ignored))
12-
{
13-
return PyType_FromSpec(&HeapCTypeWithNegativeDict_spec);
14-
}
15-
168
static PyObject *pytype_fromspec_meta(PyObject* self, PyObject *meta)
179
{
1810
if (!PyType_Check(meta)) {
@@ -375,7 +367,6 @@ create_type_from_repeated_slots(PyObject *self, PyObject *variant_obj)
375367

376368
static PyMethodDef TestMethods[] = {
377369
{"pytype_fromspec_meta", pytype_fromspec_meta, METH_O},
378-
{"negative_dictoffset", negative_dictoffset, METH_NOARGS},
379370
{"test_type_from_ephemeral_spec", test_type_from_ephemeral_spec, METH_NOARGS},
380371
{"create_type_from_repeated_slots",
381372
create_type_from_repeated_slots, METH_O},

0 commit comments

Comments
 (0)