summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp7
-rw-r--r--Userland/Libraries/LibJS/Runtime/IndexedProperties.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
index 56ca07ec40..135ecb14ba 100644
--- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
+++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp
@@ -197,13 +197,6 @@ bool IndexedPropertyIterator::operator!=(const IndexedPropertyIterator& other) c
return m_index != other.m_index;
}
-ValueAndAttributes IndexedPropertyIterator::value_and_attributes()
-{
- if (m_index < m_indexed_properties.array_like_size())
- return m_indexed_properties.get(m_index).value_or({});
- return {};
-}
-
void IndexedPropertyIterator::skip_empty_indices()
{
auto indices = m_indexed_properties.indices();
diff --git a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h
index 67561e8092..9f8b4044eb 100644
--- a/Userland/Libraries/LibJS/Runtime/IndexedProperties.h
+++ b/Userland/Libraries/LibJS/Runtime/IndexedProperties.h
@@ -101,7 +101,6 @@ public:
bool operator!=(const IndexedPropertyIterator&) const;
u32 index() const { return m_index; };
- ValueAndAttributes value_and_attributes();
private:
void skip_empty_indices();