summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftVersionList.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-09 01:57:10 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:57:10 +0200
commit0bccc94471d0223cf493ad860fa890614480433d (patch)
tree6b76f87da3da782eb1e0d083ad2b803fdabb83d1 /logic/minecraft/MinecraftVersionList.cpp
parenta0a805735b568d57e09752c60c5afadbdfde5533 (diff)
downloadMultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.gz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.lz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.tar.xz
MultiMC-0bccc94471d0223cf493ad860fa890614480433d.zip
Cleanup - QFileInfo derp and unused variables
Diffstat (limited to 'logic/minecraft/MinecraftVersionList.cpp')
-rw-r--r--logic/minecraft/MinecraftVersionList.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/logic/minecraft/MinecraftVersionList.cpp b/logic/minecraft/MinecraftVersionList.cpp
index b561606b..3aa1ac01 100644
--- a/logic/minecraft/MinecraftVersionList.cpp
+++ b/logic/minecraft/MinecraftVersionList.cpp
@@ -213,8 +213,6 @@ void MinecraftVersionList::loadMojangList(QJsonDocument jsonDoc, VersionSource s
QList<BaseVersionPtr> tempList;
for (auto version : versions)
{
- bool is_snapshot = false;
-
// Load the version info.
if (!version.isObject())
{
@@ -274,19 +272,15 @@ void MinecraftVersionList::loadMojangList(QJsonDocument jsonDoc, VersionSource s
// OneSix or Legacy. use filter to determine type
if (versionTypeStr == "release")
{
- is_snapshot = false;
}
else if (versionTypeStr == "snapshot") // It's a snapshot... yay
{
- is_snapshot = true;
}
else if (versionTypeStr == "old_alpha")
{
- is_snapshot = false;
}
else if (versionTypeStr == "old_beta")
{
- is_snapshot = false;
}
else
{