mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:17:35 +00:00
LibJS: Remove unused IndexedProperties::take_{first,last}()
This commit is contained in:
parent
1116a29c19
commit
0e363e92ef
2 changed files with 0 additions and 19 deletions
|
@ -233,22 +233,6 @@ void IndexedProperties::remove(u32 index)
|
||||||
m_storage->remove(index);
|
m_storage->remove(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
ValueAndAttributes IndexedProperties::take_first(Object* this_object)
|
|
||||||
{
|
|
||||||
auto first = m_storage->take_first();
|
|
||||||
if (first.value.is_accessor())
|
|
||||||
return { first.value.as_accessor().call_getter(this_object), first.attributes };
|
|
||||||
return first;
|
|
||||||
}
|
|
||||||
|
|
||||||
ValueAndAttributes IndexedProperties::take_last(Object* this_object)
|
|
||||||
{
|
|
||||||
auto last = m_storage->take_last();
|
|
||||||
if (last.value.is_accessor())
|
|
||||||
return { last.value.as_accessor().call_getter(this_object), last.attributes };
|
|
||||||
return last;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IndexedProperties::set_array_like_size(size_t new_size)
|
bool 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();
|
||||||
|
|
|
@ -124,9 +124,6 @@ public:
|
||||||
void put(u32 index, Value value, PropertyAttributes attributes = default_attributes);
|
void put(u32 index, Value value, PropertyAttributes attributes = default_attributes);
|
||||||
void remove(u32 index);
|
void remove(u32 index);
|
||||||
|
|
||||||
ValueAndAttributes take_first(Object* this_object);
|
|
||||||
ValueAndAttributes take_last(Object* this_object);
|
|
||||||
|
|
||||||
void append(Value value, PropertyAttributes attributes = default_attributes) { put(array_like_size(), value, attributes); }
|
void append(Value value, PropertyAttributes attributes = default_attributes) { put(array_like_size(), value, attributes); }
|
||||||
|
|
||||||
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); };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue