mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibJS: Remove the unused IndexedProperties::append_all method
This commit is contained in:
parent
22851287b1
commit
864beb0bd5
2 changed files with 0 additions and 14 deletions
|
@ -300,19 +300,6 @@ ValueAndAttributes IndexedProperties::take_last(Object* this_object)
|
||||||
return last;
|
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)
|
void IndexedProperties::set_array_like_size(size_t new_size)
|
||||||
{
|
{
|
||||||
auto current_array_like_size = array_like_size();
|
auto current_array_like_size = array_like_size();
|
||||||
|
|
|
@ -133,7 +133,6 @@ public:
|
||||||
ValueAndAttributes take_last(Object* this_object);
|
ValueAndAttributes take_last(Object* this_object);
|
||||||
|
|
||||||
void append(Value value, PropertyAttributes attributes = default_attributes) { put(nullptr, array_like_size(), value, attributes, false); }
|
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 begin(bool skip_empty = true) const { return IndexedPropertyIterator(*this, 0, skip_empty); };
|
||||||
IndexedPropertyIterator end() const { return IndexedPropertyIterator(*this, array_like_size(), false); };
|
IndexedPropertyIterator end() const { return IndexedPropertyIterator(*this, array_like_size(), false); };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue