remove unused card operators

This commit is contained in:
Maximilian Keßler 2023-08-12 19:46:14 +02:00
parent 70a6000884
commit 38e99cf662
Signed by: max
GPG key ID: BCC5A619923C0BA5
2 changed files with 0 additions and 15 deletions

View file

@ -52,10 +52,6 @@ namespace Hanabi {
bool in_starting_hand; bool in_starting_hand;
bool initial_trash; bool initial_trash;
inline Card &operator++();
inline const Card operator++(int);
inline bool operator==(const Card &other) const; inline bool operator==(const Card &other) const;
}; };

View file

@ -27,17 +27,6 @@ namespace Hanabi {
return os; 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 { bool Card::operator==(const Card &other) const {
return suit == other.suit and rank == other.rank; return suit == other.suit and rank == other.rank;
} }