Removed complex expression state (as it shouldn't compile now anyway)

This commit is contained in:
Phil Nash 2011-03-11 19:45:36 +00:00
parent 13bfe477c7
commit f35e0cbc6a
2 changed files with 1 additions and 7 deletions

View File

@ -27,7 +27,6 @@ struct ResultWas{ enum OfType
ExpressionFailed = FailureBit | 1,
ExplicitFailure = FailureBit | 2,
ExpressionTooComplex = FailureBit | 3,
Exception = 0x110,

View File

@ -98,12 +98,7 @@ namespace Catch
()
const
{
if( !hasExpression() )
return "";
return m_result == ResultWas::ExpressionTooComplex
? getExpandedExpressionInternal() + " {couldn't fully decompose the expression to evaluate it - please rewrite as a binary comparison}"
: getExpandedExpressionInternal();
return hasExpression() ? getExpandedExpressionInternal() : "";
}
///////////////////////////////////////////////////////////////////////////