瀏覽代碼

LibJS: Remove Value::to_deprecated_string_without_side_effects

Timothy Flynn 2 年之前
父節點
當前提交
ba40ef1f3a
共有 2 個文件被更改,包括 0 次插入6 次删除
  1. 0 5
      Userland/Libraries/LibJS/Runtime/Value.cpp
  2. 0 1
      Userland/Libraries/LibJS/Runtime/Value.h

+ 0 - 5
Userland/Libraries/LibJS/Runtime/Value.cpp

@@ -395,11 +395,6 @@ ErrorOr<String> Value::to_string_without_side_effects() const
     }
 }
 
-DeprecatedString Value::to_deprecated_string_without_side_effects() const
-{
-    return MUST(to_string_without_side_effects()).to_deprecated_string();
-}
-
 ThrowCompletionOr<PrimitiveString*> Value::to_primitive_string(VM& vm)
 {
     if (is_string())

+ 0 - 1
Userland/Libraries/LibJS/Runtime/Value.h

@@ -395,7 +395,6 @@ public:
     ThrowCompletionOr<FunctionObject*> get_method(VM&, PropertyKey const&) const;
 
     ErrorOr<String> to_string_without_side_effects() const;
-    DeprecatedString to_deprecated_string_without_side_effects() const;
 
     Value value_or(Value fallback) const
     {