Skip to content

Commit f48702d

Browse files
authored
gh-128910: Remove _PyTrash_begin and _PyTrash_end C-API functions (#128919)
1 parent 3893a92 commit f48702d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Include/cpython/object.h

-3
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,6 @@ partially-deallocated object. To check this, the tp_dealloc function must be
475475
passed as second argument to Py_TRASHCAN_BEGIN().
476476
*/
477477

478-
/* Python 3.9 private API, invoked by the macros below. */
479-
PyAPI_FUNC(int) _PyTrash_begin(PyThreadState *tstate, PyObject *op);
480-
PyAPI_FUNC(void) _PyTrash_end(PyThreadState *tstate);
481478

482479
PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op);
483480
PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Undocumented and unused private C-API functions ``_PyTrash_begin`` and
2+
``_PyTrash_end`` are removed.

0 commit comments

Comments
 (0)