Skip to content

Commit

Permalink
Remove deprecated audio features/analysis from track menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Nov 30, 2024
1 parent ff18160 commit d428577
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
25 changes: 0 additions & 25 deletions src/menu/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ Menu::Track::Track(const QList<PlaylistTrack> &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");
Expand Down Expand Up @@ -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())
Expand Down
1 change: 0 additions & 1 deletion src/menu/track.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d428577

Please sign in to comment.