diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp index d31e285be..e65bc9c3f 100644 --- a/launcher/InstanceList.cpp +++ b/launcher/InstanceList.cpp @@ -463,7 +463,7 @@ QList 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() diff --git a/launcher/InstanceList.h b/launcher/InstanceList.h index 154f9cfbb..142a348b9 100644 --- a/launcher/InstanceList.h +++ b/launcher/InstanceList.h @@ -32,10 +32,6 @@ using InstanceId = QString; using GroupId = QString; using InstanceLocator = std::pair; -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) */