Remove unnecessary code

This commit is contained in:
nikwen.developer@gmail.com
2014-08-18 12:17:48 +00:00
committed by nikwen.developer@gmail.com
parent 2e05fe0564
commit 002c07eb61
3 changed files with 0 additions and 8 deletions

View File

@@ -155,12 +155,6 @@ void MPDBackend::setCoverFetch(bool s) {
Covers::self()->setFetchCovers(s);
}
void MPDBackend::resetAllModels() { //TODO: Better idea?
MusicLibraryModel::self()->resetModel();
AlbumsModel::self()->resetModel();
PlaylistsModel::self()->resetModel();
}
void MPDBackend::playPause() {
switch (MPDStatus::self()->state()) {
case MPDState_Playing:

View File

@@ -111,7 +111,6 @@ public:
Q_INVOKABLE int getCrossfade() { return MPDStatus::self()->crossFade(); }
Q_INVOKABLE QStringList getOutputs () { return outputSettings; }
Q_INVOKABLE QString getReplayGain () { return replayGainSetting; }
Q_INVOKABLE void resetAllModels();
PlayQueueProxyModel * getPlayQueueProxyModel() { return &playQueueProxyModel; }
MusicLibraryProxyModel * getArtistsProxyModel() { return &artistsProxyModel; }

View File

@@ -55,7 +55,6 @@ Item {
onContentsChanged: {
if (contents != undefined) {
backend.setCoverFetch(contents["coverFetch"]) //TODO: Untick fetch checkbox => Delete saved images => Reopen app => Tick fetch checkbox => First few album covers are not loaded
// backend.resetAllModels() //TODO-R: Remove code
fetchCoversChanged()
}
}