From 6b491b9dc0b0fdfd1f07ea4e2151236186d8e7e6 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 27 Jan 2022 03:35:51 +0100 Subject: bpo-40170: Remove _Py_GetAllocatedBlocks() function (GH-30940) Move _Py_GetAllocatedBlocks() and _PyObject_DebugMallocStats() private functions to the internal C API. --- Include/cpython/objimpl.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Include/cpython/objimpl.h') diff --git a/Include/cpython/objimpl.h b/Include/cpython/objimpl.h index 7fff96e8eb..d7c76eab5c 100644 --- a/Include/cpython/objimpl.h +++ b/Include/cpython/objimpl.h @@ -52,14 +52,6 @@ the 1st step is performed automatically for you, so in a C++ class constructor you would start directly with PyObject_Init/InitVar. */ -/* This function returns the number of allocated memory blocks, regardless of size */ -PyAPI_FUNC(Py_ssize_t) _Py_GetAllocatedBlocks(void); - -/* Macros */ -#ifdef WITH_PYMALLOC -PyAPI_FUNC(int) _PyObject_DebugMallocStats(FILE *out); -#endif - typedef struct { /* user context passed as the first argument to the 2 functions */ -- cgit v1.2.1