mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
AK: Add JsonObject::remove()
This commit is contained in:
parent
8a6a9a8fb6
commit
9dafbc82ff
Notes:
sideshowbarker
2024-07-19 02:53:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9dafbc82ff2
@ -114,6 +114,15 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool remove(const String& key)
|
||||
{
|
||||
if (m_members.remove(key)) {
|
||||
m_order.remove(m_order.find_first_index(key).value());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
template<typename Builder>
|
||||
typename Builder::OutputType serialized() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user