util/Exception: remove redundant std::exception catch clause

The "std::nested_exception" catch block already covers this perfectly.
This commit is contained in:
Max Kellermann 2021-03-01 23:09:20 +01:00 committed by Max Kellermann
parent 2d96b05403
commit 80172e17ac

View File

@ -95,12 +95,6 @@ FindRetrowNested(std::exception_ptr ep)
std::rethrow_exception(ep);
} catch (const T &t) {
throw;
} catch (const std::exception &e) {
try {
std::rethrow_if_nested(e);
} catch (...) {
FindRetrowNested<T>(std::current_exception());
}
} catch (const std::nested_exception &ne) {
FindRetrowNested<T>(ne.nested_ptr());
} catch (...) {