1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

AK+Everywhere: Remove now-unecessary use of ByteString with JSON types

This removes JsonObject::get_byte_string and JsonObject::to_byte_string.
This commit is contained in:
Timothy Flynn 2025-02-17 15:04:56 -05:00 committed by Tim Flynn
parent 4791ec35bf
commit 2c03de60da
Notes: github-actions[bot] 2025-02-21 00:28:59 +00:00
17 changed files with 67 additions and 86 deletions

View file

@ -123,13 +123,6 @@ Optional<String const&> JsonObject::get_string(StringView key) const
return {};
}
Optional<ByteString> JsonObject::get_byte_string(StringView key) const
{
if (auto value = get_string(key); value.has_value())
return value->to_byte_string();
return {};
}
Optional<JsonObject&> JsonObject::get_object(StringView key)
{
auto maybe_value = get(key);
@ -282,9 +275,4 @@ bool JsonObject::remove(StringView key)
return m_members.remove(key);
}
ByteString JsonObject::to_byte_string() const
{
return serialized<StringBuilder>();
}
}