delete duplicated set_team fcn

game_display and display versions of set_team were identical, in
header and in implementation, so we simply delete the game_display
one, as a strict refactor.
This commit is contained in:
Chris Beck 2014-06-14 21:51:45 -04:00
parent a60d5b0018
commit 74e1230b9a
2 changed files with 0 additions and 20 deletions

View file

@ -991,25 +991,6 @@ void game_display::send_notification(const std::string& /*owner*/, const std::st
#endif
}
void game_display::set_team(size_t teamindex, bool show_everything)
{
assert(teamindex < dc_->teams().size());
currentTeam_ = teamindex;
if (!show_everything)
{
labels().set_team(&dc_->teams()[teamindex]);
viewpoint_ = &dc_->teams()[teamindex];
}
else
{
labels().set_team(NULL);
viewpoint_ = NULL;
}
labels().recalculate_labels();
if(boost::shared_ptr<wb::manager> w = wb_.lock())
w->on_viewer_change(teamindex);
}
void game_display::set_playing_team(size_t teamindex)
{
assert(teamindex < dc_->teams().size());

View file

@ -237,7 +237,6 @@ public:
* Data from this team will be displayed in the game status.
* set_playing_team sets the team whose turn it currently is
*/
void set_team(size_t team, bool observe=false);
void set_playing_team(size_t team);