Skip to content

Commit

Permalink
Remove non-functional methods from player.hpp.
Browse files Browse the repository at this point in the history
Attempting to call them results in an error during linking, for example:
undefined reference to `wesnothd::player::set_game(wesnothd::game*)'

Backport of 3be0f75
  • Loading branch information
Pentarctagon committed Aug 25, 2019
1 parent 42e545e commit 17ca8c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
15 changes: 0 additions & 15 deletions src/server/player.hpp
Expand Up @@ -21,8 +21,6 @@

namespace wesnothd {

class game;

class player
{
public:
Expand Down Expand Up @@ -52,19 +50,6 @@ class player

bool is_message_flooding();

/**
* @return true iff the player is in a game
*/
bool in_game() const { return get_game() != nullptr; }

/**
* @return a pointer to the game the player is in, or nullptr if he/she is not
* in a game at the moment
*/
const game* get_game() const;

void set_game(game* g);

void set_moderator(bool moderator) { moderator_ = moderator; }
bool is_moderator() const { return moderator_; }

Expand Down
1 change: 1 addition & 0 deletions src/server/player_connection.hpp
Expand Up @@ -31,6 +31,7 @@

namespace wesnothd
{
class game;

class player_record
{
Expand Down

0 comments on commit 17ca8c3

Please sign in to comment.