GameIO: remove a useless parameter

This commit is contained in:
Olivier Teulière 2012-12-26 15:59:57 +01:00
parent 655169fda6
commit 3fc1b51f6b
3 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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;
} }

View file

@ -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);