diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PropertyName.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PropertyName.h b/Userland/Libraries/LibJS/Runtime/PropertyName.h index 8df48475ad..9242822558 100644 --- a/Userland/Libraries/LibJS/Runtime/PropertyName.h +++ b/Userland/Libraries/LibJS/Runtime/PropertyName.h @@ -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 }; |