summaryrefslogtreecommitdiffstats
path: root/src/widget/wtracktableview.cpp
diff options
context:
space:
mode:
authorHarshit Maurya <hmaurya999@gmail.com>2020-04-10 06:47:39 +0530
committerHarshit Maurya <hmaurya999@gmail.com>2020-04-10 06:47:39 +0530
commit934db2162159f593d4b83ec7a6c12d87c845dd60 (patch)
tree6e93dab817416ff60fa65d10c9c9908e32975899 /src/widget/wtracktableview.cpp
parent2342cfc3eb865f2bb6c3e0ecec8b20aef1ae05b4 (diff)
WTrackMenu: remove unused code
Diffstat (limited to 'src/widget/wtracktableview.cpp')
-rw-r--r--src/widget/wtracktableview.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp
index 86b47d2e0d..0837ac7c4f 100644
--- a/src/widget/wtracktableview.cpp
+++ b/src/widget/wtracktableview.cpp
@@ -333,29 +333,6 @@ void WTrackTableView::slotMouseDoubleClicked(const QModelIndex &index) {
}
}
-void WTrackTableView::loadSelectionToGroup(QString group, bool play) {
- QModelIndexList indices = selectionModel()->selectedRows();
- if (indices.size() > 0) {
- // If the track load override is disabled, check to see if a track is
- // playing before trying to load it
- if (!(m_pConfig->getValueString(
- ConfigKey("[Controls]","AllowTrackLoadToPlayingDeck")).toInt())) {
- // TODO(XXX): Check for other than just the first preview deck.
- if (group != "[PreviewDeck1]" &&
- ControlObject::get(ConfigKey(group, "play")) > 0.0) {
- return;
- }
- }
- QModelIndex index = indices.at(0);
- TrackModel* trackModel = getTrackModel();
- TrackPointer pTrack;
- if (trackModel &&
- (pTrack = trackModel->getTrack(index))) {
- emit loadTrackToPlayer(pTrack, group, play);
- }
- }
-}
-
void WTrackTableView::slotPurge() {
QModelIndexList indices = selectionModel()->selectedRows();
if (indices.size() > 0) {
@@ -689,17 +666,6 @@ void WTrackTableView::keyPressEvent(QKeyEvent* event) {
}
}
-void WTrackTableView::loadSelectedTrack() {
- QModelIndexList indexes = selectionModel()->selectedRows();
- if (indexes.size() > 0) {
- slotMouseDoubleClicked(indexes.at(0));
- }
-}
-
-void WTrackTableView::loadSelectedTrackToGroup(QString group, bool play) {
- loadSelectionToGroup(group, play);
-}
-
QList<TrackId> WTrackTableView::getSelectedTrackIds() const {
QList<TrackId> trackIds;