diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-18 02:22:36 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | e46aba9da584338db8d8a1a8a487bdcc6cf84343 (patch) | |
tree | 40deee806e1aa9ad19f438c066aca41737d42af0 /api/logic/meta/Index.cpp | |
parent | 0060b506257b906d40ef53d1e23404dba76afcee (diff) | |
download | MultiMC-e46aba9da584338db8d8a1a8a487bdcc6cf84343.tar MultiMC-e46aba9da584338db8d8a1a8a487bdcc6cf84343.tar.gz MultiMC-e46aba9da584338db8d8a1a8a487bdcc6cf84343.tar.lz MultiMC-e46aba9da584338db8d8a1a8a487bdcc6cf84343.tar.xz MultiMC-e46aba9da584338db8d8a1a8a487bdcc6cf84343.zip |
NOISSUE sanitize loading and downloading of metadata files
Diffstat (limited to 'api/logic/meta/Index.cpp')
-rw-r--r-- | api/logic/meta/Index.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/api/logic/meta/Index.cpp b/api/logic/meta/Index.cpp index e0e8bc5d..35b9fb6f 100644 --- a/api/logic/meta/Index.cpp +++ b/api/logic/meta/Index.cpp @@ -16,9 +16,7 @@ #include "Index.h" #include "VersionList.h" -#include "tasks/LocalLoadTask.h" -#include "tasks/RemoteLoadTask.h" -#include "format/Format.h" +#include "JsonFormat.h" namespace Meta { @@ -78,15 +76,6 @@ QVariant Index::headerData(int section, Qt::Orientation orientation, int role) c } } -std::unique_ptr<Task> Index::remoteUpdateTask() -{ - return std::unique_ptr<RemoteLoadTask>(new RemoteLoadTask(this)); -} -std::unique_ptr<Task> Index::localUpdateTask() -{ - return std::unique_ptr<LocalLoadTask>(new LocalLoadTask(this)); -} - bool Index::hasUid(const QString &uid) const { return m_uids.contains(uid); |