Skip to content

Commit

Permalink
delete duplicated set_team fcn
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbeck88 committed Jun 15, 2014
1 parent a60d5b0 commit 74e1230
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions src/game_display.cpp
Expand Up @@ -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());
Expand Down
1 change: 0 additions & 1 deletion src/game_display.hpp
Expand Up @@ -237,7 +237,6 @@ class game_display : public display
* 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);


Expand Down

0 comments on commit 74e1230

Please sign in to comment.