remove unused card operators
This commit is contained in:
parent
70a6000884
commit
38e99cf662
2 changed files with 0 additions and 15 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue