diff options
Diffstat (limited to 'logic/minecraft/onesix')
-rw-r--r-- | logic/minecraft/onesix/OneSixVersionFormat.cpp | 18 | ||||
-rw-r--r-- | logic/minecraft/onesix/OneSixVersionFormat.h | 3 |
2 files changed, 0 insertions, 21 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()); diff --git a/logic/minecraft/onesix/OneSixVersionFormat.h b/logic/minecraft/onesix/OneSixVersionFormat.h index 45a961e4..3011688c 100644 --- a/logic/minecraft/onesix/OneSixVersionFormat.h +++ b/logic/minecraft/onesix/OneSixVersionFormat.h @@ -8,9 +8,6 @@ class OneSixVersionFormat { public: - // whole profiles from single file - static std::shared_ptr<MinecraftProfile> profileFromSingleJson(const QJsonObject &obj); - // version files / profile patches static VersionFilePtr versionFileFromJson(const QJsonDocument &doc, const QString &filename, const bool requireOrder); static QJsonDocument profilePatchToJson(const ProfilePatchPtr &patch, bool saveOrder); |