NOISSUE remove some dead code from version related classes
This commit is contained in:
parent
3aa28bd64a
commit
6f2a87167a
@ -35,12 +35,6 @@ using VersionPtr = std::shared_ptr<class Version>;
|
||||
class MULTIMC_LOGIC_EXPORT Version : public QObject, public BaseVersion, public BaseEntity
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString uid READ uid CONSTANT)
|
||||
Q_PROPERTY(QString parentUid READ parentUid)
|
||||
Q_PROPERTY(QString version READ version CONSTANT)
|
||||
Q_PROPERTY(QString type READ type NOTIFY typeChanged)
|
||||
Q_PROPERTY(QDateTime time READ time NOTIFY timeChanged)
|
||||
Q_PROPERTY(QHash<QString, QString> requires READ requires NOTIFY requiresChanged)
|
||||
|
||||
public: /* con/des */
|
||||
explicit Version(const QString &uid, const QString &version);
|
||||
|
@ -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()
|
||||
|
@ -53,10 +53,6 @@ public: /* methods */
|
||||
{
|
||||
return m_releaseTime;
|
||||
}
|
||||
VersionSource getVersionSource() override
|
||||
{
|
||||
return VersionSource::Local;
|
||||
}
|
||||
|
||||
std::shared_ptr<class VersionFile> getVersionFile() override
|
||||
{
|
||||
|
@ -125,10 +125,6 @@ public:
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
VersionSource getVersionSource() override
|
||||
{
|
||||
return VersionSource::Local;
|
||||
}
|
||||
bool isVersionChangeable() override
|
||||
{
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user