bpo-40268: Remove unused pycore_pymem.h includes (GH-19531)
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index f05a98a..b271e57 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -5,7 +5,6 @@
#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_bytes_methods.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
#include "bytesobject.h"
#include "pystrhex.h"
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 30bc739..06ead2b 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -3,10 +3,10 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
-#include "pycore_abstract.h" // _PyIndex_Check()
+#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_bytes_methods.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
+#include "pycore_pymem.h" // PYMEM_CLEANBYTE
#include "pystrhex.h"
#include <stddef.h>
diff --git a/Objects/cellobject.c b/Objects/cellobject.c
index 6efae62..86a89f02e6 100644
--- a/Objects/cellobject.c
+++ b/Objects/cellobject.c
@@ -2,7 +2,6 @@
#include "Python.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
PyObject *
PyCell_New(PyObject *obj)
diff --git a/Objects/classobject.c b/Objects/classobject.c
index 242a642..fd9f875 100644
--- a/Objects/classobject.c
+++ b/Objects/classobject.c
@@ -3,7 +3,6 @@
#include "Python.h"
#include "pycore_object.h"
#include "pycore_pyerrors.h"
-#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "structmember.h" // PyMemberDef
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index db1ff32..69a6b5c 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -8,7 +8,6 @@
#include <Python.h>
#include "pycore_initconfig.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
#include "structmember.h" // PyMemberDef
#include "osdefs.h"
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 750c7ae..bd24f67 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -3,7 +3,6 @@
#include "Python.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
#include "pycore_tupleobject.h"
#include "code.h"
#include "structmember.h" // PyMemberDef
diff --git a/Objects/iterobject.c b/Objects/iterobject.c
index 51104fb..6cac41a 100644
--- a/Objects/iterobject.c
+++ b/Objects/iterobject.c
@@ -2,7 +2,6 @@
#include "Python.h"
#include "pycore_object.h"
-#include "pycore_pymem.h"
typedef struct {
PyObject_HEAD
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index 4340f06..682bbe8 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -13,7 +13,6 @@
#include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_object.h"
-#include "pycore_pymem.h"
#include "pystrhex.h"
#include <stddef.h>
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index f483671..20eba6f 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -5,7 +5,6 @@
#include "pycore_ceval.h" // _Py_EnterRecursiveCall()
#include "pycore_object.h"
#include "pycore_pyerrors.h"
-#include "pycore_pymem.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "structmember.h" // PyMemberDef
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 3f6f9cf..eb34f10 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -1,5 +1,5 @@
#include "Python.h"
-#include "pycore_pymem.h"
+#include "pycore_pymem.h" // _PyTraceMalloc_Config
#include <stdbool.h>
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c
index 6093b3b..391711f 100644
--- a/Objects/sliceobject.c
+++ b/Objects/sliceobject.c
@@ -16,7 +16,6 @@
#include "Python.h"
#include "pycore_abstract.h" // _PyIndex_Check()
#include "pycore_object.h"
-#include "pycore_pymem.h"
#include "structmember.h" // PyMemberDef
static PyObject *