Index: sources/storage/FileHandler.cpp =================================================================== diff -u -r0536992850014cee0a949958ce56c0008615da41 -r4489378415df8f8398f59a20ca637b39f2ed2613 --- sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision 0536992850014cee0a949958ce56c0008615da41) +++ sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision 4489378415df8f8398f59a20ca637b39f2ed2613) @@ -111,32 +111,6 @@ } /*! - * \brief FileHandler::read - * \details reads the provided filename's JSON content into the vContent variable. - * \param vFileName - Source file name - * \param vContent - The content of the file which will be written to when done. - * \return false if file cannot be read or parsed - */ -bool FileHandler::read(const QString &vFileName, QJsonObject &vContent, QJsonParseError *error) -{ - QFile file(vFileName); - if (! file.open(QFile::Text | QFile::ReadOnly)) { - errOut(QObject::tr("Cannot open file for read (%1). Possible corrupted file system.").arg(vFileName)); - return false; - } - QTextStream in(&file); - QString content = in.readAll(); - QJsonParseError jsonParseError; - QJsonDocument doc = QJsonDocument::fromJson(content.toUtf8(), &jsonParseError); - if (jsonParseError.error) { - if (error) *error = jsonParseError; - return false; - } - vContent = doc.object(); - return true; -} - -/*! * \brief FileHandler::copyFolder * \details Copies all the file and folders recursively. * \param vSource - The source folder