diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-03-13 19:45:34 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-03-26 17:05:27 +0100 |
commit | 010e07eb4552d805ad3dc08347531d9bad6b3c24 (patch) | |
tree | 7e45475b6c4c269ff748f625d926f5345bec559d /logic/minecraft/onesix/OneSixVersionFormat.cpp | |
parent | 576d808d7197b4b7ef798891dfd138e2e8aae54f (diff) | |
download | PrismLauncher-010e07eb4552d805ad3dc08347531d9bad6b3c24.tar.gz PrismLauncher-010e07eb4552d805ad3dc08347531d9bad6b3c24.tar.bz2 PrismLauncher-010e07eb4552d805ad3dc08347531d9bad6b3c24.zip |
NOISSUE clean up forge installer
Diffstat (limited to 'logic/minecraft/onesix/OneSixVersionFormat.cpp')
-rw-r--r-- | logic/minecraft/onesix/OneSixVersionFormat.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/logic/minecraft/onesix/OneSixVersionFormat.cpp b/logic/minecraft/onesix/OneSixVersionFormat.cpp index d9aff535..e262cecd 100644 --- a/logic/minecraft/onesix/OneSixVersionFormat.cpp +++ b/logic/minecraft/onesix/OneSixVersionFormat.cpp @@ -1,5 +1,4 @@ #include "OneSixVersionFormat.h" -#include <minecraft/NullProfileStrategy.h> #include <Json.h> #include "minecraft/ParseUtils.h" #include <minecraft/MinecraftVersion.h> @@ -283,23 +282,6 @@ QJsonDocument OneSixVersionFormat::profilePatchToJson(const ProfilePatchPtr &pat throw VersionIncomplete(QObject::tr("Unhandled object type while processing %1").arg(patch->getName())); } -std::shared_ptr<MinecraftProfile> OneSixVersionFormat::profileFromSingleJson(const QJsonObject &obj) -{ - std::shared_ptr<MinecraftProfile> version(new MinecraftProfile(new NullProfileStrategy())); - try - { - version->clear(); - auto file = versionFileFromJson(QJsonDocument(obj), QString(), false); - file->applyTo(version.get()); - version->appendPatch(file); - } - catch(Exception &err) - { - return nullptr; - } - return version; -} - JarmodPtr OneSixVersionFormat::jarModFromJson(const QJsonObject &libObj, const QString &filename, const QString &originalName) { JarmodPtr out(new Jarmod()); |