[muparser] Remove getOrThrow()

This is no longer used or needed
This commit is contained in:
ridiculousfish
2017-12-17 17:17:08 -08:00
parent 2f2f4b4287
commit 5d2cf3f666

View File

@@ -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(); }