diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-04 22:57:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-05 00:03:25 +0200 |
commit | 9fe363eaad37915b0071fab369abe527efee4535 (patch) | |
tree | 6aa31960e06d35778f7037ff9869126744bf429d | |
parent | 9555ca99a032c764e659452b09d664bd4f68fd10 (diff) | |
download | serenity-9fe363eaad37915b0071fab369abe527efee4535.zip |
LibJS: Remove now unused IndexedPropertyIterator::value_and_attributes()
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/IndexedProperties.cpp | 7 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/IndexedProperties.h | 1 |
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(); |