summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 15:21:52 (GMT)
committerGitHub <noreply@github.com>2022-02-07 15:21:52 (GMT)
commit7d8b69e1d1f125454d8cec81ff0dee72f2bef957 (patch)
tree620185012021139b0c85ad01cc62c646a096548b /Python/compile.c
parent760349198dbd8771629753e096a885c1aa28a1ca (diff)
downloadcpython-7d8b69e1d1f125454d8cec81ff0dee72f2bef957.zip
cpython-7d8b69e1d1f125454d8cec81ff0dee72f2bef957.tar.gz
cpython-7d8b69e1d1f125454d8cec81ff0dee72f2bef957.tar.bz2
bpo-46670: Remove unused macros in the Python directory (GH-31192)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Python/compile.c b/Python/compile.c
index cecd6a5..3f33f30 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -37,7 +37,6 @@
#define DEFAULT_BLOCK_SIZE 16
-#define DEFAULT_BLOCKS 8
#define DEFAULT_CODE_SIZE 128
#define DEFAULT_LNOTAB_SIZE 16
#define DEFAULT_CNOTAB_SIZE 32
@@ -1472,13 +1471,6 @@ compiler_addop_j_noline(struct compiler *c, int opcode, basicblock *b)
Py_DECREF(__new_const); \
}
-#define ADDOP_O(C, OP, O, TYPE) { \
- assert(!HAS_CONST(OP)); /* use ADDOP_LOAD_CONST */ \
- if (!compiler_addop_o((C), (OP), (C)->u->u_ ## TYPE, (O))) \
- return 0; \
-}
-
-/* Same as ADDOP_O, but steals a reference. */
#define ADDOP_N(C, OP, O, TYPE) { \
assert(!HAS_CONST(OP)); /* use ADDOP_LOAD_CONST_NEW */ \
if (!compiler_addop_o((C), (OP), (C)->u->u_ ## TYPE, (O))) { \
@@ -1552,11 +1544,6 @@ compiler_addop_j_noline(struct compiler *c, int opcode, basicblock *b)
} \
}
-#define VISIT_SLICE(C, V, CTX) {\
- if (!compiler_visit_slice((C), (V), (CTX))) \
- return 0; \
-}
-
#define VISIT_SEQ(C, TYPE, SEQ) { \
int _i; \
asdl_ ## TYPE ## _seq *seq = (SEQ); /* avoid variable capture */ \