diff --git a/Userland/Libraries/LibJS/Bytecode/Instruction.h b/Userland/Libraries/LibJS/Bytecode/Instruction.h index 3330569a30..8943d191b5 100644 --- a/Userland/Libraries/LibJS/Bytecode/Instruction.h +++ b/Userland/Libraries/LibJS/Bytecode/Instruction.h @@ -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; diff --git a/Userland/Libraries/LibJS/Bytecode/Op.h b/Userland/Libraries/LibJS/Bytecode/Op.h index cdef1393b9..32802fcdf1 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.h +++ b/Userland/Libraries/LibJS/Bytecode/Op.h @@ -1442,18 +1442,4 @@ ALWAYS_INLINE ThrowCompletionOr 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 -} - }