simplified ResetNumJoinsPerPlayer - e.g. removed the function

This commit is contained in:
Kai Philipp
2016-07-17 17:46:55 +02:00
parent 70d6743c39
commit 21003da510
2 changed files with 1 additions and 8 deletions
+1 -7
View File
@@ -457,7 +457,7 @@ ServerGame::InternalEndGame()
{
StoreAndResetRanking();
m_game.reset();
ResetNumJoinsPerPlayer();
m_numJoinsPerPlayer.clear();
}
void
@@ -1186,9 +1186,3 @@ ServerGame::GetNumJoinsPerPlayer(const std::string &playerName)
}
return num;
}
void
ServerGame::ResetNumJoinsPerPlayer()
{
m_numJoinsPerPlayer.clear();
}
-1
View File
@@ -127,7 +127,6 @@ public:
void AddPlayerToNumJoinsPerPlayer(const std::string &playerName);
int GetNumJoinsPerPlayer(const std::string &playerName);
void ResetNumJoinsPerPlayer();
protected: