LibJS: Remove unused member PutPrivateById::m_kind

Private property puts never have a PutKind.
This commit is contained in:
Andreas Kling 2025-10-10 11:27:28 +02:00 committed by Andreas Kling
parent e7a3c4dbad
commit d13b4f3e39
2 changed files with 3 additions and 7 deletions

View File

@ -3648,13 +3648,11 @@ ByteString PutByIdWithThis::to_byte_string_impl(Bytecode::Executable const& exec
ByteString PutPrivateById::to_byte_string_impl(Bytecode::Executable const& executable) const
{
auto kind = property_kind_to_string(m_kind);
return ByteString::formatted(
"PutPrivateById {}, {}, {}, kind:{} ",
"PutPrivateById {}, {}, {}",
format_operand("base"sv, m_base, executable),
executable.identifier_table->get(m_property),
format_operand("src"sv, m_src, executable),
kind);
format_operand("src"sv, m_src, executable));
}
ByteString GetById::to_byte_string_impl(Bytecode::Executable const& executable) const

View File

@ -1311,12 +1311,11 @@ private:
class PutPrivateById final : public Instruction {
public:
explicit PutPrivateById(Operand base, IdentifierTableIndex property, Operand src, PutKind kind = PutKind::Normal)
explicit PutPrivateById(Operand base, IdentifierTableIndex property, Operand src)
: Instruction(Type::PutPrivateById)
, m_base(base)
, m_property(property)
, m_src(src)
, m_kind(kind)
{
}
@ -1336,7 +1335,6 @@ private:
Operand m_base;
IdentifierTableIndex m_property;
Operand m_src;
PutKind m_kind;
};
class DeleteById final : public Instruction {