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;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
InstanceList::InstListError InstanceList::loadList()
|
void InstanceList::loadList()
|
||||||
{
|
{
|
||||||
auto existingIds = getIdMapping(m_instances);
|
auto existingIds = getIdMapping(m_instances);
|
||||||
|
|
||||||
@ -523,7 +523,6 @@ InstanceList::InstListError InstanceList::loadList()
|
|||||||
}
|
}
|
||||||
m_dirty = false;
|
m_dirty = false;
|
||||||
updateTotalPlayTime();
|
updateTotalPlayTime();
|
||||||
return NoError;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstanceList::updateTotalPlayTime()
|
void InstanceList::updateTotalPlayTime()
|
||||||
|
@ -32,10 +32,6 @@ using InstanceId = QString;
|
|||||||
using GroupId = QString;
|
using GroupId = QString;
|
||||||
using InstanceLocator = std::pair<InstancePtr, int>;
|
using InstanceLocator = std::pair<InstancePtr, int>;
|
||||||
|
|
||||||
enum class InstCreateError { NoCreateError = 0, NoSuchVersion, UnknownCreateError, InstExists, CantCreateDir };
|
|
||||||
|
|
||||||
enum class GroupsState { NotLoaded, Steady, Dirty };
|
|
||||||
|
|
||||||
struct TrashHistoryItem {
|
struct TrashHistoryItem {
|
||||||
QString id;
|
QString id;
|
||||||
QString polyPath;
|
QString polyPath;
|
||||||
@ -71,18 +67,12 @@ class InstanceList : public QAbstractTableModel {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum AdditionalRoles { SortRole = Qt::UserRole + 1, GroupRole, InstanceIDRole };
|
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); }
|
InstancePtr at(int i) const { return m_instances.at(i); }
|
||||||
|
|
||||||
int count() const { return m_instances.count(); }
|
int count() const { return m_instances.count(); }
|
||||||
|
|
||||||
InstListError loadList();
|
void loadList();
|
||||||
void saveNow();
|
void saveNow();
|
||||||
|
|
||||||
/* O(n) */
|
/* O(n) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user