Removed validation by exception (no longer what we use) from com/xpdr

This commit is contained in:
Klaus Basan
2014-06-30 23:54:27 +02:00
parent ef93477a82
commit f989acb42e
5 changed files with 9 additions and 103 deletions

View File

@@ -20,20 +20,6 @@ namespace BlackMisc
return CTransponder::isValidTransponderCode(this->m_transponderCode);
}
/*
* Validate
*/
bool CTransponder::validate(bool strict) const
{
if (this->isDefaultValue()) return true;
bool valid = this->validValues();
if (!strict) return valid;
Q_ASSERT_X(valid, "CTransponder::validate", "illegal values");
if (!valid)
throw std::range_error("Illegal values in CTransponder::validate");
return true;
}
/*
* String representation
*/