mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-14 20:03:29 +00:00
LibJS: Remove unused Instruction::is_terminator()
This commit is contained in:
parent
3ccac0cf6e
commit
3d5cd23393
|
@ -132,7 +132,6 @@ public:
|
|||
#undef __BYTECODE_OP
|
||||
};
|
||||
|
||||
bool is_terminator() const;
|
||||
Type type() const { return m_type; }
|
||||
size_t length() const { return m_length; }
|
||||
DeprecatedString to_deprecated_string(Bytecode::Executable const&) const;
|
||||
|
|
|
@ -1442,18 +1442,4 @@ ALWAYS_INLINE ThrowCompletionOr<void> Instruction::execute(Bytecode::Interpreter
|
|||
#undef __BYTECODE_OP
|
||||
}
|
||||
|
||||
ALWAYS_INLINE bool Instruction::is_terminator() const
|
||||
{
|
||||
#define __BYTECODE_OP(op) \
|
||||
case Type::op: \
|
||||
return Op::op::IsTerminator;
|
||||
|
||||
switch (type()) {
|
||||
ENUMERATE_BYTECODE_OPS(__BYTECODE_OP)
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
#undef __BYTECODE_OP
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue