diff --git a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp index eaff3740f61170dad221952a0caf510bfee24c3a..1208448c2dbccb11e2b58c22a297303e81109cf3 100644 --- a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp +++ b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.cpp @@ -128,17 +128,5 @@ bool XMLQtInterface::checkHash() const WARN("File is valid but could not write hashfile!"); return true; } - -bool XMLQtInterface::isHashGood(const QByteArray &hash) const -{ - QByteArray fileHash = QCryptographicHash::hash(_fileData, QCryptographicHash::Md5); - if(hash != fileHash) - { - INFO("Hashfile does not match data ... checking file ..."); - return false; - } - return true; -} - -} // end namespace IO -} // end namespace BaseLib +} // namespace IO +} // namespace BaseLib diff --git a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h index c33a025246af7324dd55ee1172bd849e5dacd9ca..a5671efc9dd2a3ea22de467b5d607d7d39ecaa24 100644 --- a/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h +++ b/BaseLib/IO/XmlIO/Qt/XMLQtInterface.h @@ -46,9 +46,6 @@ protected: /// If no hash file exists, the xml-file is validated and a hash file is written if the xml-file was valid. bool checkHash() const; - /// Checks if the given file is conform to the given hash. - bool isHashGood(const QByteArray &hash) const; - QString _schemaFile; /// Caches the actual file contents when reading.