From a0b47aee5ba8d96e5ceec12798be9f63a16dbcd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 27 Feb 2016 22:02:56 +0100 Subject: NOISSUE move version file reading and writing to dedicated namespaces --- logic/minecraft/MinecraftProfile.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'logic/minecraft/MinecraftProfile.cpp') diff --git a/logic/minecraft/MinecraftProfile.cpp b/logic/minecraft/MinecraftProfile.cpp index 379705a7..7a84996c 100644 --- a/logic/minecraft/MinecraftProfile.cpp +++ b/logic/minecraft/MinecraftProfile.cpp @@ -68,7 +68,6 @@ void MinecraftProfile::clear() assets.clear(); processArguments.clear(); minecraftArguments.clear(); - minimumLauncherVersion = 0xDEADBEAF; mainClass.clear(); appletClass.clear(); libraries.clear(); @@ -267,23 +266,6 @@ QList > MinecraftProfile::getActiveNativeLibs() return output; } -std::shared_ptr MinecraftProfile::fromJson(const QJsonObject &obj) -{ - std::shared_ptr version(new MinecraftProfile(new NullProfileStrategy())); - try - { - version->clear(); - auto file = VersionFile::fromJson(QJsonDocument(obj), QString(), false); - file->applyTo(version.get()); - version->appendPatch(file); - } - catch(Exception &err) - { - return 0; - } - return version; -} - QVariant MinecraftProfile::data(const QModelIndex &index, int role) const { if (!index.isValid()) -- cgit v1.2.3