Skip to content

Commit

Permalink
Remove unused parameter from list_users()
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Jan 9, 2021
1 parent ef6bc7f commit 1e6a6cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/server/wesnothd/game.cpp
Expand Up @@ -174,7 +174,7 @@ std::string game::username(player_iterator iter) const
return iter->info().name();
}

std::string game::list_users(user_vector users, const std::string& /*func*/) const
std::string game::list_users(user_vector users) const
{
std::string list;

Expand Down Expand Up @@ -265,7 +265,7 @@ void game::start_game(player_iterator starter)
LOG_GAME
<< starter->client_ip() << "\t" << starter->name() << "\t"
<< (advance ? "advanced" : "started") << (save ? " reloaded" : "") << " game:\t\"" << name_ << "\" (" << id_
<< ", " << db_id_ << ") with: " << list_users(players_, __func__)
<< ", " << db_id_ << ") with: " << list_users(players_)
<< ". Settings: map: " << multiplayer["mp_scenario"]
<< "\tera: " << multiplayer["mp_era"]
<< "\tXP: " << multiplayer["experience_modifier"]
Expand Down Expand Up @@ -690,7 +690,7 @@ void game::send_muted_observers(player_iterator user) const
return;
}

std::string muted_nicks = list_users(muted_observers_, __func__);
std::string muted_nicks = list_users(muted_observers_);

send_server_message("Muted observers: " + muted_nicks, user);
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/wesnothd/game.hpp
Expand Up @@ -459,7 +459,7 @@ class game
std::string username(player_iterator pl) const;

/** Returns a comma separated list of user names. */
std::string list_users(user_vector users, const std::string& func) const;
std::string list_users(user_vector users) const;

/** calculates the initial value for sides_, side_controllerds_, nsides_*/
void reset_sides();
Expand Down

0 comments on commit 1e6a6cd

Please sign in to comment.