mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-121554: remove unnecessary internal functions in compile.c (#121555)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
ef10110cd7
commit
6557af6698
7 changed files with 12 additions and 105 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue