mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Removed validation by exception (no longer what we use) from com/xpdr
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user