summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftProfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/MinecraftProfile.cpp')
-rw-r--r--logic/minecraft/MinecraftProfile.cpp18
1 files changed, 0 insertions, 18 deletions
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<std::shared_ptr<RawLibrary> > MinecraftProfile::getActiveNativeLibs()
return output;
}
-std::shared_ptr<MinecraftProfile> MinecraftProfile::fromJson(const QJsonObject &obj)
-{
- std::shared_ptr<MinecraftProfile> 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())