mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 03:41: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 the value or throw the error
|
||||
value_type getOrThrow() const {
|
||||
if (has_error()) throw error();
|
||||
return value();
|
||||
}
|
||||
|
||||
/// \return whether this has a value.
|
||||
explicit operator bool() const { return has_value(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user