Skip to content

Commit cb2513b

Browse files
authored
gh-160109: Remove unused FVS macros (#161403)
1 parent 288cc2b commit cb2513b

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎Include/ceval.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,12 @@ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate);
122122
#define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \
123123
}
124124

125-
/* Masks and values used by FORMAT_VALUE opcode. */
125+
/* String conversion constants. */
126126
#define FVC_MASK 0x3
127127
#define FVC_NONE 0x0
128128
#define FVC_STR 0x1
129129
#define FVC_REPR 0x2
130130
#define FVC_ASCII 0x3
131-
#define FVS_MASK 0x4
132-
#define FVS_HAVE_SPEC 0x4
133131

134132
#ifndef Py_LIMITED_API
135133
# define Py_CPYTHON_CEVAL_H
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Remove the unused ``FVS_MASK`` and ``FVS_HAVE_SPEC`` macros. They were used by
2+
the ``FORMAT_VALUE`` opcode, which was removed in Python 3.13.

‎Tools/build/check_capi_macros_ignored.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ FVC_MASK
6969
FVC_NONE
7070
FVC_REPR
7171
FVC_STR
72-
FVS_HAVE_SPEC
73-
FVS_MASK
7472
GETPGRP_HAVE_ARG
7573
HAVE_ACCEPT
7674
HAVE_ACCEPT4

0 commit comments

Comments
 (0)