From a5d4ef462cf53bcc074cf7562d9a9fca0ebf15ac Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 16 Apr 2021 18:30:39 +0200 Subject: [PATCH] LibJS: Remove #if !defined(KERNEL) AK::JsonValue::{is,as}_double() is not available in the kernel, but that doesn't affect LibJS. --- Userland/Libraries/LibJS/Runtime/JSONObject.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/JSONObject.cpp b/Userland/Libraries/LibJS/Runtime/JSONObject.cpp index c1bcfe0c0e..fa7d04a53c 100644 --- a/Userland/Libraries/LibJS/Runtime/JSONObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/JSONObject.cpp @@ -423,10 +423,8 @@ Value JSONObject::parse_json_value(GlobalObject& global_object, const JsonValue& return Value(parse_json_array(global_object, value.as_array())); if (value.is_null()) return js_null(); -#if !defined(KERNEL) if (value.is_double()) return Value(value.as_double()); -#endif if (value.is_number()) return Value(value.to_i32(0)); if (value.is_string())