More cleanup.

This commit is contained in:
Tommy Schmitz 2011-08-02 17:45:44 +00:00
parent 1b77bc9dc9
commit 6eec0edfa1
2 changed files with 6 additions and 3 deletions

View File

@ -71,11 +71,14 @@ manager::~manager()
LOG_WB << "Manager destroyed.\n";
}
//Used for chat-spamming debug info
#if 0
static void print_to_chat(const std::string& title, const std::string& message)
{
resources::screen->add_chat_message(time(NULL), title, 0, message,
events::chat_handler::MESSAGE_PRIVATE, false);
}
#endif
void manager::print_help_once()
{

View File

@ -60,9 +60,9 @@ protected:
//bool visit(size_t team_index, team&, side_actions&, side_actions::iterator);
///@return Whether or not to visit any of the contents of sa.
bool pre_visit_team(size_t /*team_index*/, team& /*t*/, side_actions& sa) {return !sa.hidden();}
bool pre_visit_team(size_t /*team_index*/, team&, side_actions& sa) {return !sa.hidden();}
///@return Whether or not to visit any more teams after this one.
bool post_visit_team(size_t /*team_index*/, team& /*t*/, side_actions& /*sa*/) {return true;}
bool post_visit_team(size_t /*team_index*/, team&, side_actions&) {return true;}
private:
template<bool reverse>
@ -130,7 +130,7 @@ protected:
virtual ~visitor() {} //Not intended for polymorphic deletion
//"Inherited" from visitor_base
bool visit(size_t, team&, side_actions&, side_actions::iterator itor)
bool visit(size_t /*team_index*/, team&, side_actions&, side_actions::iterator itor)
{ (*itor)->accept(*this); return true; }
using visitor_base<visitor>::pre_visit_team;
using visitor_base<visitor>::post_visit_team;