1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibJS: Remove PropertyName::to_value since it is not used anymore :^)

This commit is contained in:
davidot 2021-07-05 14:04:19 +02:00 committed by Linus Groh
parent ce59e49e27
commit f998cc156f

View file

@ -176,17 +176,6 @@ public:
return StringOrSymbol(as_symbol());
}
Value to_value(VM& vm) const
{
if (is_string())
return js_string(vm, m_string);
if (is_number())
return Value(m_number);
if (is_symbol())
return m_symbol;
return js_undefined();
}
private:
Type m_type { Type::Invalid };
bool m_string_may_be_number { true };