diff options
author | davidot <david.tuin@gmail.com> | 2021-07-05 14:04:19 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-05 16:04:52 +0100 |
commit | f998cc156ff6d8be0c65f73b1c11e8b72185be6d (patch) | |
tree | 2a8daf50a6f00281fa9e28163f3539ef6f7c3f9e /Userland | |
parent | ce59e49e27bf4216a2a0c14306fb29ea553d312e (diff) | |
download | serenity-f998cc156ff6d8be0c65f73b1c11e8b72185be6d.zip |
LibJS: Remove PropertyName::to_value since it is not used anymore :^)
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 }; |