Everywhere: Remove all KERNEL #defines

This commit is contained in:
Tim Ledbetter
2024-06-17 23:12:53 +01:00
committed by Andreas Kling
parent de99dd2c89
commit 5ca2f4dfd7
73 changed files with 116 additions and 808 deletions

View File

@@ -108,7 +108,6 @@ Optional<bool> JsonObject::get_bool(StringView key) const
return {};
}
#if !defined(KERNEL)
Optional<ByteString> JsonObject::get_byte_string(StringView key) const
{
auto maybe_value = get(key);
@@ -116,7 +115,6 @@ Optional<ByteString> JsonObject::get_byte_string(StringView key) const
return maybe_value->as_string();
return {};
}
#endif
Optional<JsonObject const&> JsonObject::get_object(StringView key) const
{
@@ -134,7 +132,6 @@ Optional<JsonArray const&> JsonObject::get_array(StringView key) const
return {};
}
#if !defined(KERNEL)
Optional<double> JsonObject::get_double_with_precision_loss(StringView key) const
{
auto maybe_value = get(key);
@@ -150,7 +147,6 @@ Optional<float> JsonObject::get_float_with_precision_loss(StringView key) const
return maybe_value->get_float_with_precision_loss();
return {};
}
#endif
bool JsonObject::has(StringView key) const
{