From 9e44d869153a60ceef1a61151e3efb7c072153f6 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Mon, 28 Apr 2025 01:27:31 +1200 Subject: [PATCH] LibJS: Remove value_or from JS::Value This is no longer used after 3cf5053. --- Libraries/LibJS/Runtime/Value.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Libraries/LibJS/Runtime/Value.h b/Libraries/LibJS/Runtime/Value.h index 687966a9791..91795c86199 100644 --- a/Libraries/LibJS/Runtime/Value.h +++ b/Libraries/LibJS/Runtime/Value.h @@ -379,15 +379,6 @@ public: [[nodiscard]] String to_string_without_side_effects() const; -#if 0 - Value value_or(Value fallback) const - { - if (is_special_empty_value()) - return fallback; - return *this; - } -#endif - [[nodiscard]] GC::Ref typeof_(VM&) const; bool operator==(Value const&) const;