diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-06-17 03:10:35 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-17 16:52:15 +0200 |
commit | 864beb0bd502c16544aae77c9b508c8bad69d002 (patch) | |
tree | 5e4c55d517a5530c8024e7d36d237cf6717375b3 /Userland/Libraries/LibJS | |
parent | 22851287b126e065df21f34d13094e5cfb1961e3 (diff) | |
download | serenity-864beb0bd502c16544aae77c9b508c8bad69d002.zip |
LibJS: Remove the unused IndexedProperties::append_all method
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp | 13 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/IndexedProperties.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp index a7ae1d54d4..81b30df8ba 100644 --- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp +++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp @@ -300,19 +300,6 @@ ValueAndAttributes IndexedProperties::take_last(Object* this_object) return last; } -void IndexedProperties::append_all(Object* this_object, const IndexedProperties& properties, bool evaluate_accessors) -{ - if (m_storage->is_simple_storage() && !properties.m_storage->is_simple_storage()) - switch_to_generic_storage(); - - for (auto it = properties.begin(false); it != properties.end(); ++it) { - const auto& element = it.value_and_attributes(this_object, evaluate_accessors); - if (this_object && this_object->vm().exception()) - return; - m_storage->put(m_storage->array_like_size(), element.value, element.attributes); - } -} - void IndexedProperties::set_array_like_size(size_t new_size) { auto current_array_like_size = array_like_size(); diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h index 8414460dea..a9e54f6d8d 100644 --- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h +++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h @@ -133,7 +133,6 @@ public: ValueAndAttributes take_last(Object* this_object); void append(Value value, PropertyAttributes attributes = default_attributes) { put(nullptr, array_like_size(), value, attributes, false); } - void append_all(Object* this_object, const IndexedProperties& properties, bool evaluate_accessors = true); IndexedPropertyIterator begin(bool skip_empty = true) const { return IndexedPropertyIterator(*this, 0, skip_empty); }; IndexedPropertyIterator end() const { return IndexedPropertyIterator(*this, array_like_size(), false); }; |