Index: sources/storage/FileHandler.cpp =================================================================== diff -u -r5d20b99876194a12730c601914452691dd3a7558 -re21b48f8a2c42ab879a807c82970b0fb6d1b37d7 --- sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision 5d20b99876194a12730c601914452691dd3a7558) +++ sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision e21b48f8a2c42ab879a807c82970b0fb6d1b37d7) @@ -19,7 +19,6 @@ #include #include #include -#include // Project @@ -439,22 +438,3 @@ QFileInfo fileInfo(vFilePath); return fileInfo.canonicalFilePath() != fileInfo.filePath(); } - -/*! - * \brief FileHandler::sha256sum - * \param vFileName - the file name including path to generate the sha256sum for - * \param vOk - if used will contain the success/true, fail/false of the checksum generation - * \return The checksum result in hex sting. - */ -QString FileHandler::sha256sum(QString vFileName, bool *vOk) { - bool ok = true; - QByteArray shasum; - QCryptographicHash hash(QCryptographicHash::Sha256); - QFile file(vFileName); - if ( ! file.open(QIODevice::ReadOnly)) { ok = false; goto lOut; } - hash.addData(&file); - shasum = hash.result().toHex(); -lOut: - if (vOk) *vOk = ok; - return shasum; -}