summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-07-10 22:48:37 (GMT)
committerGitHub <noreply@github.com>2024-07-10 22:48:37 (GMT)
commit6557af669899f18f8d123f8e1b6c3380d502c519 (patch)
tree69054c6acced74cae1cad6739ae110131c5c4cf1 /Python
parentef10110cd781afe8ddd3e65a54dc2b5ed2cb3187 (diff)
downloadcpython-6557af669899f18f8d123f8e1b6c3380d502c519.zip
cpython-6557af669899f18f8d123f8e1b6c3380d502c519.tar.gz
cpython-6557af669899f18f8d123f8e1b6c3380d502c519.tar.bz2
gh-121554: remove unnecessary internal functions in compile.c (#121555)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 8315774..4190b14 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -665,54 +665,6 @@ compiler_set_qualname(struct compiler *c)
return SUCCESS;
}
-int
-_PyCompile_OpcodeIsValid(int opcode)
-{
- return IS_VALID_OPCODE(opcode);
-}
-
-int
-_PyCompile_OpcodeHasArg(int opcode)
-{
- return OPCODE_HAS_ARG(opcode);
-}
-
-int
-_PyCompile_OpcodeHasConst(int opcode)
-{
- return OPCODE_HAS_CONST(opcode);
-}
-
-int
-_PyCompile_OpcodeHasName(int opcode)
-{
- return OPCODE_HAS_NAME(opcode);
-}
-
-int
-_PyCompile_OpcodeHasJump(int opcode)
-{
- return OPCODE_HAS_JUMP(opcode);
-}
-
-int
-_PyCompile_OpcodeHasFree(int opcode)
-{
- return OPCODE_HAS_FREE(opcode);
-}
-
-int
-_PyCompile_OpcodeHasLocal(int opcode)
-{
- return OPCODE_HAS_LOCAL(opcode);
-}
-
-int
-_PyCompile_OpcodeHasExc(int opcode)
-{
- return IS_BLOCK_PUSH_OPCODE(opcode);
-}
-
static int
codegen_addop_noarg(instr_sequence *seq, int opcode, location loc)
{