diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-03-26 20:50:31 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-07 00:20:02 +0200 |
commit | 6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9 (patch) | |
tree | f2a46805a2b1b735d6082de4ed28c568edf42f2c /api/logic/minecraft | |
parent | 3aa28bd64ad4efc0b9b2d5eaec66a460156895a9 (diff) | |
download | MultiMC-6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9.tar MultiMC-6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9.tar.gz MultiMC-6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9.tar.lz MultiMC-6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9.tar.xz MultiMC-6f2a87167a13101d80d2fbc096bbb6a5eb5ab0c9.zip |
NOISSUE remove some dead code from version related classes
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.h | 10 | ||||
-rw-r--r-- | api/logic/minecraft/VersionFile.h | 4 | ||||
-rw-r--r-- | api/logic/minecraft/onesix/OneSixProfileStrategy.cpp | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/api/logic/minecraft/ProfilePatch.h b/api/logic/minecraft/ProfilePatch.h index 6f63f3c4..699a38ae 100644 --- a/api/logic/minecraft/ProfilePatch.h +++ b/api/logic/minecraft/ProfilePatch.h @@ -15,14 +15,6 @@ enum ProblemSeverity PROBLEM_ERROR }; -/// where is a version from? -enum class VersionSource -{ - Builtin, //!< version loaded from the internal resources. - Local, //!< version loaded from a file in the cache. - Remote, //!< incomplete version on a remote server. -}; - class PatchProblem { public: @@ -70,8 +62,6 @@ public: virtual QString getFilename() = 0; - virtual VersionSource getVersionSource() = 0; - virtual std::shared_ptr<class VersionFile> getVersionFile() = 0; virtual const QList<PatchProblem>& getProblems() diff --git a/api/logic/minecraft/VersionFile.h b/api/logic/minecraft/VersionFile.h index 6a922d74..dad9a057 100644 --- a/api/logic/minecraft/VersionFile.h +++ b/api/logic/minecraft/VersionFile.h @@ -53,10 +53,6 @@ public: /* methods */ { return m_releaseTime; } - VersionSource getVersionSource() override - { - return VersionSource::Local; - } std::shared_ptr<class VersionFile> getVersionFile() override { diff --git a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp index 3a9b10e6..3f33dd7f 100644 --- a/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp +++ b/api/logic/minecraft/onesix/OneSixProfileStrategy.cpp @@ -125,10 +125,6 @@ public: { return 0; } - VersionSource getVersionSource() override - { - return VersionSource::Local; - } bool isVersionChangeable() override { return true; |