mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-30 20:34:27 +01:00
GameIO: remove a useless parameter
This commit is contained in:
parent
655169fda6
commit
3fc1b51f6b
3 changed files with 3 additions and 5 deletions
|
@ -438,7 +438,7 @@ void displayData(const PublicGame &iGame, const vector<wstring> &tokens)
|
||||||
else if (displayType == L"S")
|
else if (displayType == L"S")
|
||||||
GameIO::printAllPoints(cout, iGame);
|
GameIO::printAllPoints(cout, iGame);
|
||||||
else if (displayType == L"t")
|
else if (displayType == L"t")
|
||||||
GameIO::printPlayedRack(cout, iGame, iGame.getHistory().getSize());
|
GameIO::printPlayedRack(cout, iGame);
|
||||||
else if (displayType == L"T")
|
else if (displayType == L"T")
|
||||||
GameIO::printAllRacks(cout, iGame);
|
GameIO::printAllRacks(cout, iGame);
|
||||||
else
|
else
|
||||||
|
|
|
@ -48,8 +48,6 @@ using boost::wformat;
|
||||||
INIT_LOGGER(utils, GameIO);
|
INIT_LOGGER(utils, GameIO);
|
||||||
|
|
||||||
|
|
||||||
#define __UNUSED__ __attribute__((unused))
|
|
||||||
|
|
||||||
void GameIO::printBoard(ostream &out, const PublicGame &iGame)
|
void GameIO::printBoard(ostream &out, const PublicGame &iGame)
|
||||||
{
|
{
|
||||||
int row, col;
|
int row, col;
|
||||||
|
@ -154,7 +152,7 @@ void GameIO::printNonPlayed(ostream &out, const PublicGame &iGame)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GameIO::printPlayedRack(ostream &out, const PublicGame &iGame, int __UNUSED__ n)
|
void GameIO::printPlayedRack(ostream &out, const PublicGame &iGame)
|
||||||
{
|
{
|
||||||
out << lfw(iGame.getCurrentRack().toString(PlayedRack::RACK_SIMPLE)) << endl;
|
out << lfw(iGame.getCurrentRack().toString(PlayedRack::RACK_SIMPLE)) << endl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,7 @@ public:
|
||||||
static void printBoardMultipliers(ostream &out, const PublicGame &iGame);
|
static void printBoardMultipliers(ostream &out, const PublicGame &iGame);
|
||||||
|
|
||||||
static void printNonPlayed(ostream &out, const PublicGame &iGame);
|
static void printNonPlayed(ostream &out, const PublicGame &iGame);
|
||||||
static void printPlayedRack(ostream &out, const PublicGame &iGame, int n);
|
static void printPlayedRack(ostream &out, const PublicGame &iGame);
|
||||||
static void printAllRacks(ostream &out, const PublicGame &iGame);
|
static void printAllRacks(ostream &out, const PublicGame &iGame);
|
||||||
static void printSearchResults(ostream &out, const Results &iResults, int);
|
static void printSearchResults(ostream &out, const Results &iResults, int);
|
||||||
static void printPoints(ostream &out, const PublicGame &iGame);
|
static void printPoints(ostream &out, const PublicGame &iGame);
|
||||||
|
|
Loading…
Add table
Reference in a new issue