summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-01-04 21:52:49 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-04 23:37:26 +0000
commit0e363e92efbc921a7160d00ebcfa7c479b522472 (patch)
tree2500623eec385517012316b873e01c5feb77b6a6 /Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
parent1116a29c19c797bd1299aa42827bb69286d3bade (diff)
downloadserenity-0e363e92efbc921a7160d00ebcfa7c479b522472.zip
LibJS: Remove unused IndexedProperties::take_{first,last}()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
index 6b0ca3b0a9..b8bef63734 100644
--- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
+++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
@@ -233,22 +233,6 @@ void IndexedProperties::remove(u32 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)
{
auto current_array_like_size = array_like_size();