]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128910: Remove `_PyTrash_begin` and `_PyTrash_end` C-API functions (#128919)
authorsobolevn <mail@sobolevn.me>
Thu, 16 Jan 2025 15:41:40 +0000 (18:41 +0300)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2025 15:41:40 +0000 (15:41 +0000)
Include/cpython/object.h
Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst [new file with mode: 0644]

index c8c6bc97fa32ee569fe46ab185830c8e5f53504b..ba31e2464abf84e0a3ebb308eb00bafb30a211bb 100644 (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);
diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-01-16-18-16-18.gh-issue-128910.9pqfab.rst
new file mode 100644 (file)
index 0000000..e095ba9
--- /dev/null
@@ -0,0 +1,2 @@
+Undocumented and unused private C-API functions ``_PyTrash_begin`` and
+``_PyTrash_end`` are removed.