diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-12-04 16:47:26 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2018-12-04 17:22:58 +0300 |
commit | 3902b9b1208be287b2b416aefe42b8d9c26a0e3c (patch) | |
tree | a240472065766910428d30f402990d241ced5607 /src/gui/updater | |
parent | 94a82cbb596edc2ae85198a111a4c08e8a1d2e3c (diff) |
Updater: remove unused function
Diffstat (limited to 'src/gui/updater')
-rw-r--r-- | src/gui/updater/updateinfo.cpp | 28 | ||||
-rw-r--r-- | src/gui/updater/updateinfo.h | 1 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/gui/updater/updateinfo.cpp b/src/gui/updater/updateinfo.cpp index 48ab68bae..a0cc91b78 100644 --- a/src/gui/updater/updateinfo.cpp +++ b/src/gui/updater/updateinfo.cpp @@ -82,34 +82,6 @@ UpdateInfo UpdateInfo::parseElement(const QDomElement &element, bool *ok) return result; } -UpdateInfo UpdateInfo::parseFile(const QString &filename, bool *ok) -{ - QFile file(filename); - if (!file.open(QIODevice::ReadOnly)) { - qCCritical(lcUpdater) << "Unable to open file '" << filename << "'"; - if (ok) - *ok = false; - return UpdateInfo(); - } - - QString errorMsg; - int errorLine, errorCol; - QDomDocument doc; - if (!doc.setContent(&file, false, &errorMsg, &errorLine, &errorCol)) { - qCCritical(lcUpdater) << errorMsg << " at " << errorLine << "," << errorCol; - if (ok) - *ok = false; - return UpdateInfo(); - } - - bool documentOk; - UpdateInfo c = parseElement(doc.documentElement(), &documentOk); - if (ok) { - *ok = documentOk; - } - return c; -} - UpdateInfo UpdateInfo::parseString(const QString &xml, bool *ok) { QString errorMsg; diff --git a/src/gui/updater/updateinfo.h b/src/gui/updater/updateinfo.h index 0ac00074c..a57c6f040 100644 --- a/src/gui/updater/updateinfo.h +++ b/src/gui/updater/updateinfo.h @@ -23,7 +23,6 @@ public: Parse XML object from DOM element. */ static UpdateInfo parseElement(const QDomElement &element, bool *ok); - static UpdateInfo parseFile(const QString &filename, bool *ok); static UpdateInfo parseString(const QString &xml, bool *ok); private: |