LibJS: Remove unused ThrowCompletionOr<T>::release... helper

This commit is contained in:
Andreas Kling 2025-04-04 13:55:34 +02:00 committed by Andreas Kling
parent 6d8bc2b1d6
commit c0600c4353
Notes: github-actions[bot] 2025-04-05 09:21:54 +00:00

View file

@ -301,12 +301,6 @@ public:
return Completion { Completion::Type::Throw, error.error };
}
ValueType release_allocated_value_but_fixme_should_propagate_errors()
{
VERIFY(!is_error());
return release_value();
}
private:
Variant<ValueType, ErrorValue> m_value_or_error;
};