util/Exception: remove redundant std::exception catch clause
The "std::nested_exception" catch block already covers this perfectly.
This commit is contained in:
parent
2d96b05403
commit
80172e17ac
@ -95,12 +95,6 @@ FindRetrowNested(std::exception_ptr ep)
|
|||||||
std::rethrow_exception(ep);
|
std::rethrow_exception(ep);
|
||||||
} catch (const T &t) {
|
} catch (const T &t) {
|
||||||
throw;
|
throw;
|
||||||
} catch (const std::exception &e) {
|
|
||||||
try {
|
|
||||||
std::rethrow_if_nested(e);
|
|
||||||
} catch (...) {
|
|
||||||
FindRetrowNested<T>(std::current_exception());
|
|
||||||
}
|
|
||||||
} catch (const std::nested_exception &ne) {
|
} catch (const std::nested_exception &ne) {
|
||||||
FindRetrowNested<T>(ne.nested_ptr());
|
FindRetrowNested<T>(ne.nested_ptr());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
Loading…
Reference in New Issue
Block a user