From ee70f1327a54e30aa64434ceb6e208014344408a Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 17 Feb 2025 11:31:21 -0500 Subject: [PATCH] AK: Remove unused JSON string APIs --- AK/JsonArray.h | 2 -- AK/JsonValue.h | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/AK/JsonArray.h b/AK/JsonArray.h index d0625766658..955c3ebe8ac 100644 --- a/AK/JsonArray.h +++ b/AK/JsonArray.h @@ -78,8 +78,6 @@ public: template void serialize(Builder&) const; - [[nodiscard]] ByteString to_byte_string() const { return serialized(); } - template void for_each(Callback callback) { diff --git a/AK/JsonValue.h b/AK/JsonValue.h index c7a9044af41..0dff0f6e738 100644 --- a/AK/JsonValue.h +++ b/AK/JsonValue.h @@ -83,20 +83,6 @@ public: template void serialize(Builder&) const; - ByteString as_string_or(ByteString const& alternative) const - { - if (is_string()) - return as_string(); - return alternative; - } - - ByteString deprecated_to_byte_string() const - { - if (is_string()) - return as_string(); - return serialized(); - } - Optional get_int() const { return get_integer(); } Optional get_i32() const { return get_integer(); } Optional get_i64() const { return get_integer(); }