mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-12 18:11:05 +00:00
More cleanup.
This commit is contained in:
parent
1b77bc9dc9
commit
6eec0edfa1
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user