From 38e99cf662d5ccdffe2c536de1aaf9c07a3e0e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sat, 12 Aug 2023 19:46:14 +0200 Subject: [PATCH] remove unused card operators --- include/game_state.h | 4 ---- include/game_state.hpp | 11 ----------- 2 files changed, 15 deletions(-) diff --git a/include/game_state.h b/include/game_state.h index 1c5fa0f..2ba82ef 100644 --- a/include/game_state.h +++ b/include/game_state.h @@ -52,10 +52,6 @@ namespace Hanabi { bool in_starting_hand; bool initial_trash; - inline Card &operator++(); - - inline const Card operator++(int); - inline bool operator==(const Card &other) const; }; diff --git a/include/game_state.hpp b/include/game_state.hpp index 0bac7f7..e96f0ed 100644 --- a/include/game_state.hpp +++ b/include/game_state.hpp @@ -27,17 +27,6 @@ namespace Hanabi { return os; } - Card &Card::operator++() { - rank++; - return *this; - } - - const Card Card::operator++(int) { - Card ret = *this; - rank++; - return ret; - } - bool Card::operator==(const Card &other) const { return suit == other.suit and rank == other.rank; }