From d4285778251bb60772af9347943996c7610eaa98 Mon Sep 17 00:00:00 2001 From: kraxarn Date: Sat, 30 Nov 2024 13:42:34 +0100 Subject: [PATCH] Remove deprecated audio features/analysis from track menu --- src/menu/track.cpp | 25 ------------------------- src/menu/track.hpp | 1 - 2 files changed, 26 deletions(-) diff --git a/src/menu/track.cpp b/src/menu/track.cpp index c1d4e7bb..204ca647 100644 --- a/src/menu/track.cpp +++ b/src/menu/track.cpp @@ -52,15 +52,6 @@ Menu::Track::Track(const QList &tracks, lib::spt::api &spotify, addSeparator(); } - if (tracks.length() <= 100) - { - const auto icon = Icon::get(QStringLiteral("view-statistics")); - const auto text = QStringLiteral("Audio features"); - auto *trackFeatures = addAction(icon, text); - QAction::connect(trackFeatures, &QAction::triggered, - this, &Menu::Track::onAudioFeatures); - } - if (isSingle) { auto *lyrics = addAction(Icon::get("view-media-lyrics"), "Lyrics"); @@ -410,22 +401,6 @@ void Menu::Track::onRemoveFromPlaylist(bool /*checked*/) }); } -void Menu::Track::onAudioFeatures(bool /*checked*/) -{ - if (tracks.empty()) - { - return; - } - - auto *sidePanel = SidePanel::View::find(this); - if (sidePanel == nullptr) - { - return; - } - - sidePanel->openAudioFeatures(getTracks()); -} - void Menu::Track::onLyrics(bool /*checked*/) { if (tracks.empty()) diff --git a/src/menu/track.hpp b/src/menu/track.hpp index 952ee9ba..790614e1 100644 --- a/src/menu/track.hpp +++ b/src/menu/track.hpp @@ -70,7 +70,6 @@ namespace Menu /** All tracks have the same album */ auto allSameAlbum() const -> bool; - void onAudioFeatures(bool checked); void onLyrics(bool checked); void onCopySongLink(bool checked); void onCopySongName(bool checked);