1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Userland: Remove serialize-to-JSON functions only used for Inspector

This commit is contained in:
Andreas Kling 2023-04-24 10:36:53 +02:00
parent c756e021a7
commit 3de8dd921e
8 changed files with 0 additions and 112 deletions

View file

@ -174,14 +174,6 @@ void Object::deferred_invoke(Function<void()> invokee)
Core::deferred_invoke([invokee = move(invokee), strong_this = NonnullRefPtr(*this)] { invokee(); });
}
void Object::save_to(JsonObject& json)
{
for (auto& it : m_properties) {
auto& property = it.value;
json.set(property->name(), property->get());
}
}
JsonValue Object::property(DeprecatedString const& name) const
{
auto it = m_properties.find(name);