Author: tschmitz
Date: Tue Aug  2 19:45:44 2011
New Revision: 50566

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50566&view=rev
Log:
More cleanup.

Modified:
    trunk/src/whiteboard/manager.cpp
    trunk/src/whiteboard/visitor.hpp

Modified: trunk/src/whiteboard/manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/manager.cpp?rev=50566&r1=50565&r2=50566&view=diff
==============================================================================
--- trunk/src/whiteboard/manager.cpp (original)
+++ trunk/src/whiteboard/manager.cpp Tue Aug  2 19:45:44 2011
@@ -71,11 +71,14 @@
        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()
 {

Modified: trunk/src/whiteboard/visitor.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/visitor.hpp?rev=50566&r1=50565&r2=50566&view=diff
==============================================================================
--- trunk/src/whiteboard/visitor.hpp (original)
+++ trunk/src/whiteboard/visitor.hpp Tue Aug  2 19:45:44 2011
@@ -60,9 +60,9 @@
        //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 @@
        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;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to