From 010e07eb4552d805ad3dc08347531d9bad6b3c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 13 Mar 2016 19:45:34 +0100 Subject: NOISSUE clean up forge installer --- logic/minecraft/onesix/OneSixVersionFormat.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'logic/minecraft/onesix/OneSixVersionFormat.cpp') 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 #include #include "minecraft/ParseUtils.h" #include @@ -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 OneSixVersionFormat::profileFromSingleJson(const QJsonObject &obj) -{ - std::shared_ptr 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()); -- cgit v1.2.3