Skip to content

Commit

Permalink
refactor(library): simplify createFindOnWebSubmenus by removing unuse…
Browse files Browse the repository at this point in the history
…d variables
  • Loading branch information
Swiftb0y committed Sep 14, 2023
1 parent 4d2974a commit ce80bbe
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/widget/findonwebmenufactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ namespace mixxx {
namespace library {

void createFindOnWebSubmenus(QMenu* pFindOnWebMenu, const Track& track) {
auto pFindOnWebMenuSoundcloud = make_parented<QMenu>(
new FindOnWebMenuSoundcloud(pFindOnWebMenu, track));

auto pFindOnWebMenuDiscogs = make_parented<QMenu>(
new FindOnWebMenuDiscogs(pFindOnWebMenu, track));

auto pFindOnWebMenuLastfm = make_parented<QMenu>(
new FindOnWebMenuLastfm(pFindOnWebMenu, track));
make_parented<FindOnWebMenuSoundcloud>(pFindOnWebMenu, track);
make_parented<FindOnWebMenuDiscogs>(pFindOnWebMenu, track);
make_parented<FindOnWebMenuLastfm>(pFindOnWebMenu, track);
}

} // namespace library
Expand Down

0 comments on commit ce80bbe

Please sign in to comment.