Skip to content

Commit

Permalink
Remove unuseed function from tracksmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Oct 3, 2022
1 parent 64b0b97 commit 2e1e2b8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions src/lib/musicsourceplugin.h
Expand Up @@ -39,8 +39,7 @@ class GLACIERMUSIC_EXPORT MusicSourcePlugin : public QObject {
virtual void clearPlaylist() = 0;

signals:
void
pluginChanged(QString id);
void pluginChanged(QString id);

void hasBackChanged();
void hasForwardChanged();
Expand Down
9 changes: 0 additions & 9 deletions src/lib/tracksmodel.cpp
Expand Up @@ -72,15 +72,6 @@ void TracksModel::setCurrentIndex(int index)
}
}

void TracksModel::loadPlaylistFromDB()
{
beginResetModel();
m_tracks.clear();
m_currentIndex = -1;

endResetModel();
}

void TracksModel::addTrack(Track* track)
{
beginInsertRows(QModelIndex(), rowCount() - 1, rowCount());
Expand Down
1 change: 0 additions & 1 deletion src/lib/tracksmodel.h
Expand Up @@ -22,7 +22,6 @@ class TracksModel : public QAbstractListModel {
void currentIndexChanged(int currentIndex);

public slots:
void loadPlaylistFromDB();
void addTrack(Track* track);
void reset();
QVariant get(const int idx);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/localsource/localsourceplugin.cpp
Expand Up @@ -13,7 +13,6 @@ LocalSourcePlugin::LocalSourcePlugin(QObject* parent)
Collection* collection = new Collection();
collection->rescanCollection();

// connect(collection, &Collection::rescanCollectionFinished, this, &LocalSourcePlugin::loadPlaylistFromDB);
connect(m_tracksModel, &TracksModel::modelReset, this, &LocalSourcePlugin::calcButtonStatus);
connect(m_tracksModel, &TracksModel::currentIndexChanged, this, &LocalSourcePlugin::makeTrackPlayed);
}
Expand Down

0 comments on commit 2e1e2b8

Please sign in to comment.