drop THROW_BASE_EXCEPTION_CAUSE()

This commit is contained in:
Michael Davidsaver
2020-06-06 08:16:35 -07:00
parent f17d2bbca1
commit 2e775ef2fb
2 changed files with 0 additions and 21 deletions

View File

@@ -31,16 +31,6 @@ void Unroller::unroll<0>(double /*d*/) {
THROW_BASE_EXCEPTION("the root cause");
}
void internalTestBaseException(int /*unused*/ = 0)
{
try {
// NOTE: 5, 4, 3, 2, 1 calls will be optimized and not shown
Unroller().unroll<5>(42.0);
} catch (BaseException& be3) {
THROW_BASE_EXCEPTION_CAUSE("exception 1", be3);
}
}
void testBaseExceptionTest() {
printf("testBaseException... ");
@@ -50,16 +40,6 @@ void testBaseExceptionTest() {
printf("\n\n%s\n\n", be.what());
}
try {
try {
internalTestBaseException();
} catch (BaseException& be2) {
THROW_BASE_EXCEPTION_CAUSE("exception 2", be2);
}
} catch (BaseException& be) {
printf("\n\n%s\n\n", be.what());
}
testPass("testBaseException");
}