mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
[muparser] Remove getOrThrow()
This is no longer used or needed
This commit is contained in:
@@ -389,12 +389,6 @@ class ValueOrError {
|
|||||||
return value_;
|
return value_;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \return the value or throw the error
|
|
||||||
value_type getOrThrow() const {
|
|
||||||
if (has_error()) throw error();
|
|
||||||
return value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// \return whether this has a value.
|
/// \return whether this has a value.
|
||||||
explicit operator bool() const { return has_value(); }
|
explicit operator bool() const { return has_value(); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user