chore: remove unused stuff

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-01 22:47:58 +02:00
parent ff7e984198
commit f85683cb3b
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 2 additions and 13 deletions

View File

@ -463,7 +463,7 @@ QList<InstanceId> InstanceList::discoverInstances()
return out;
}
InstanceList::InstListError InstanceList::loadList()
void InstanceList::loadList()
{
auto existingIds = getIdMapping(m_instances);
@ -523,7 +523,6 @@ InstanceList::InstListError InstanceList::loadList()
}
m_dirty = false;
updateTotalPlayTime();
return NoError;
}
void InstanceList::updateTotalPlayTime()

View File

@ -32,10 +32,6 @@ using InstanceId = QString;
using GroupId = QString;
using InstanceLocator = std::pair<InstancePtr, int>;
enum class InstCreateError { NoCreateError = 0, NoSuchVersion, UnknownCreateError, InstExists, CantCreateDir };
enum class GroupsState { NotLoaded, Steady, Dirty };
struct TrashHistoryItem {
QString id;
QString polyPath;
@ -71,18 +67,12 @@ class InstanceList : public QAbstractTableModel {
};
enum AdditionalRoles { SortRole = Qt::UserRole + 1, GroupRole, InstanceIDRole };
/*!
* \brief Error codes returned by functions in the InstanceList class.
* NoError Indicates that no error occurred.
* UnknownError indicates that an unspecified error occurred.
*/
enum InstListError { NoError = 0, UnknownError };
InstancePtr at(int i) const { return m_instances.at(i); }
int count() const { return m_instances.count(); }
InstListError loadList();
void loadList();
void saveNow();
/* O(n) */