summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 15:21:31 (GMT)
committerGitHub <noreply@github.com>2022-02-07 15:21:31 (GMT)
commit4f1d3f33dd8b37a151b73533f18b08b0500223e5 (patch)
treea20153bc057edf36f4abd2ba730ed2f9a1ebd779 /Modules/_struct.c
parentd3e53bc5321a9f08c7ed5b9383eefb2e03dfa6e2 (diff)
downloadcpython-4f1d3f33dd8b37a151b73533f18b08b0500223e5.zip
cpython-4f1d3f33dd8b37a151b73533f18b08b0500223e5.tar.gz
cpython-4f1d3f33dd8b37a151b73533f18b08b0500223e5.tar.bz2
bpo-46670: Remove unused macros in the Modules directory (GH-31194)
* bpo-46670: Remove unused macros in the Modules directory * Add again LINKAT_DIR_FD_CONVERTER: generated by Argument Clinic
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 210dbdc..7d05ec5 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -2065,8 +2065,6 @@ static PyMemberDef s_members[] = {
{NULL} /* sentinel */
};
-#define OFF(x) offsetof(PyStructObject, x)
-
static PyGetSetDef s_getsetlist[] = {
{"format", (getter)s_get_format, (setter)NULL, "struct format string", NULL},
{"size", (getter)s_get_size, (setter)NULL, "struct size in bytes", NULL},