chore: remove unused stuff
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
ff7e984198
commit
f85683cb3b
@ -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()
|
||||
|
@ -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) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user