[ox/std] Cleanup Result::copyTo variants

(synced from e941781f21)
This commit is contained in:
2023-12-25 00:54:59 -06:00
parent 6bbb2871a2
commit 133447a105
-14
View File
@@ -172,20 +172,6 @@ struct [[nodiscard]] Result {
return error; return error;
} }
constexpr Error copyTo(type &val) const && noexcept {
if (!error) [[likely]] {
val = value;
}
return error;
}
constexpr Error copyTo(type &val) & noexcept {
if (!error) [[likely]] {
val = value;
}
return error;
}
constexpr Error copyTo(type &val) && noexcept { constexpr Error copyTo(type &val) && noexcept {
if (!error) [[likely]] { if (!error) [[likely]] {
val = std::move(value); val = std::move(value);