diff options
author | Kemal Zebari <kemalzebra@gmail.com> | 2023-05-08 13:53:29 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-09 06:21:34 +0200 |
commit | eda2a2f5da50b593b9c0c136c27a671cfcadbcaa (patch) | |
tree | 30c5ca2758ffbd09a0e8e17fdfa3649dbcfc1084 /AK | |
parent | c7e08c3266a8572abb34ceebf97af1fef4700aca (diff) | |
download | serenity-eda2a2f5da50b593b9c0c136c27a671cfcadbcaa.zip |
AK: Remove `must_set()` from `JsonArray`
Due to 582c55a, both `must_set()` and `set()` should be providing the
same behavior. Not only is that a reason to remove `must_set()`, but
it also performs erroneous behavior since it inserts an element at
a specified index instead of modifying an element at that index.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/JsonArray.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/AK/JsonArray.h b/AK/JsonArray.h index 1154925568..9b732036bb 100644 --- a/AK/JsonArray.h +++ b/AK/JsonArray.h @@ -62,7 +62,6 @@ public: [[nodiscard]] JsonValue take(size_t index) { return m_values.take(index); } void must_append(JsonValue value) { m_values.append(move(value)); } - void must_set(size_t index, JsonValue value) { m_values.insert(index, move(value)); } void clear() { m_values.clear(); } ErrorOr<void> append(JsonValue value) { return m_values.try_append(move(value)); } |