diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-05 01:50:05 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-05 01:50:05 +0100 |
commit | 47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb (patch) | |
tree | e48d886f3aa1a14854f3c79efda00590a2d987c3 /logic/VersionFinal.cpp | |
parent | 6b76af116eabfa2a1c64e6eb7c9ad84fe7fc0bfe (diff) | |
download | MultiMC-47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb.tar MultiMC-47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb.tar.gz MultiMC-47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb.tar.lz MultiMC-47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb.tar.xz MultiMC-47bc7e5ee377dacfeb7cf3d13f07cfd24db906fb.zip |
More refactor.
Diffstat (limited to 'logic/VersionFinal.cpp')
-rw-r--r-- | logic/VersionFinal.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/logic/VersionFinal.cpp b/logic/VersionFinal.cpp index ec450eda..8d668014 100644 --- a/logic/VersionFinal.cpp +++ b/logic/VersionFinal.cpp @@ -52,26 +52,6 @@ void VersionFinal::clear() endResetModel(); } -void VersionFinal::dump() const -{ - qDebug().nospace() << "VersionFinal(" - << "\n\tid=" << id - << "\n\ttime=" << time - << "\n\treleaseTime=" << releaseTime - << "\n\ttype=" << type - << "\n\tassets=" << assets - << "\n\tprocessArguments=" << processArguments - << "\n\tminecraftArguments=" << minecraftArguments - << "\n\tminimumLauncherVersion=" << minimumLauncherVersion - << "\n\tmainClass=" << mainClass - << "\n\tlibraries="; - for (auto lib : libraries) - { - qDebug().nospace() << "\n\t\t" << lib.get(); - } - qDebug().nospace() << "\n)"; -} - bool VersionFinal::canRemove(const int index) const { if (index < versionFiles.size()) @@ -201,25 +181,3 @@ int VersionFinal::columnCount(const QModelIndex &parent) const { return 2; } - -QDebug operator<<(QDebug &dbg, const VersionFinal *version) -{ - version->dump(); - return dbg.maybeSpace(); -} -QDebug operator<<(QDebug &dbg, const OneSixLibrary *library) -{ - dbg.nospace() << "OneSixLibrary(" - << "\n\t\t\trawName=" << library->rawName() - << "\n\t\t\tname=" << library->name() - << "\n\t\t\tversion=" << library->version() - << "\n\t\t\ttype=" << library->type() - << "\n\t\t\tisActive=" << library->isActive() - << "\n\t\t\tisNative=" << library->isNative() - << "\n\t\t\tdownloadUrl=" << library->downloadUrl() - << "\n\t\t\tstoragePath=" << library->storagePath() - << "\n\t\t\tabsolutePath=" << library->absoluteUrl() - << "\n\t\t\thint=" << library->hint(); - dbg.nospace() << "\n\t\t)"; - return dbg.maybeSpace(); -} |