diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index e9a1b52c8..bf1394039 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -438,14 +438,6 @@ bool Player::clearCardsToDelete() return true; } -/** - * Creates a card menu from the given card and sets it as the currently active card menu. - * Will first check if the card should have a card menu, and no-ops if not. - * - * @param card The card to create the menu for. Pass nullptr to disable the card menu. - * @return The new card menu, or nullptr if failed. - */ - void Player::setActive(bool _active) { active = _active; diff --git a/cockatrice/src/game/player/player_menu.cpp b/cockatrice/src/game/player/player_menu.cpp index 92330899d..0c7588824 100644 --- a/cockatrice/src/game/player/player_menu.cpp +++ b/cockatrice/src/game/player/player_menu.cpp @@ -838,6 +838,13 @@ QMenu *PlayerMenu::createCardMenu(const CardItem *card) return cardMenu; } +/** + * Creates a card menu from the given card and sets it as the currently active card menu. + * Will first check if the card should have a card menu, and no-ops if not. + * + * @param card The card to create the menu for. Pass nullptr to disable the card menu. + * @return The new card menu, or nullptr if failed. + */ QMenu *PlayerMenu::updateCardMenu(const CardItem *card) { if (!card) {