From 3d5cd23393cc984017b4795619138f1e71e71414 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 21 Sep 2023 09:41:25 +0200 Subject: [PATCH] LibJS: Remove unused Instruction::is_terminator() --- Userland/Libraries/LibJS/Bytecode/Instruction.h | 1 - Userland/Libraries/LibJS/Bytecode/Op.h | 14 -------------- 2 files changed, 15 deletions(-) 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 -} - }