Remove unused debug function

This commit is contained in:
Janek Bevendorff 2017-03-10 18:06:22 +01:00
parent 15dd783d2c
commit 429bef6830
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -143,21 +143,6 @@ bool YubiKey::getSerial(unsigned int& serial)
return true;
}
#ifdef QT_DEBUG
/**
* @brief printByteArray - debug raw data
* @param a array input
* @return string representation of array
*/
static inline QString printByteArray(const QByteArray& a)
{
QString s;
for (int i = 0; i < a.size(); i++)
s.append(QString::number(a[i] & 0xff, 16).rightJustified(2, '0'));
return s;
}
#endif
YubiKey::ChallengeResult YubiKey::challenge(int slot, bool mayBlock, const QByteArray& challenge, QByteArray& response)
{
if (!m_mutex.tryLock()) {