gh-128910: Remove _PyTrash_begin and _PyTrash_end C-API functions (#128919)

This commit is contained in:
sobolevn 2025-01-16 18:41:40 +03:00 committed by GitHub
parent 3893a92d95
commit f48702dade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -475,9 +475,6 @@ partially-deallocated object. To check this, the tp_dealloc function must be
passed as second argument to Py_TRASHCAN_BEGIN().
*/
/* Python 3.9 private API, invoked by the macros below. */
PyAPI_FUNC(int) _PyTrash_begin(PyThreadState *tstate, PyObject *op);
PyAPI_FUNC(void) _PyTrash_end(PyThreadState *tstate);
PyAPI_FUNC(void) _PyTrash_thread_deposit_object(PyThreadState *tstate, PyObject *op);
PyAPI_FUNC(void) _PyTrash_thread_destroy_chain(PyThreadState *tstate);

View File

@ -0,0 +1,2 @@
Undocumented and unused private C-API functions ``_PyTrash_begin`` and
``_PyTrash_end`` are removed.