mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
AK+GMLCompiler+LibWeb: Remove JsonValue::is_double
This concludes a series of patches which remove the ability to observe which arithmetic type is used to store number in JsonValue.
This commit is contained in:
parent
faef802229
commit
c49819cced
5 changed files with 6 additions and 21 deletions
|
@ -241,14 +241,6 @@ bool JsonObject::has_object(StringView key) const
|
|||
return value.has_value() && value->is_object();
|
||||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
bool JsonObject::has_double(StringView key) const
|
||||
{
|
||||
auto value = get(key);
|
||||
return value.has_value() && value->is_double();
|
||||
}
|
||||
#endif
|
||||
|
||||
void JsonObject::set(ByteString const& key, JsonValue value)
|
||||
{
|
||||
m_members.set(key, move(value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue