Author: ai0867
Date: Thu Jan 14 21:13:14 2010
New Revision: 40699

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40699&view=rev
Log:
Clear out some commented-out debug code

Modified:
    branches/fendrin_pathfind/src/pathfind.cpp

Modified: branches/fendrin_pathfind/src/pathfind.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/fendrin_pathfind/src/pathfind.cpp?rev=40699&r1=40698&r2=40699&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/pathfind.cpp (original)
+++ branches/fendrin_pathfind/src/pathfind.cpp Thu Jan 14 21:13:14 2010
@@ -49,12 +49,6 @@
        std::vector<std::set<map_location> >::iterator sources_it = 
sources_.begin();
        for (; sources_it != sources_.end() && destinations_it != 
destinations_.end();) {
                for (std::set<map_location>::iterator it2 = 
sources_it->begin(); it2 != sources_it->end(); ++it2) {
-                       //std::stringstream ss;
-                       //ss << "Adding teleporter: (" << it2->x << ',' << 
it2->y << ") -> ";
-                       //foreach(const map_location &dest, (*destinations_it))
-                       //      ss << '(' << dest.x << ',' << dest.y << "),";
-                       //ss << "\n";
-                       //ERR_PF << ss.str();
                        teleport_map_.insert(std::make_pair(*it2, 
&(*destinations_it)));
                }
                ++sources_it;
@@ -72,12 +66,6 @@
        std::vector<std::set<map_location> >::iterator sources_it = 
sources_.begin();
        for (; sources_it != sources_.end() && destinations_it != 
destinations_.end();) {
                for (std::set<map_location>::iterator it2 = 
sources_it->begin(); it2 != sources_it->end(); ++it2) {
-                       //std::stringstream ss;
-                       //ss << "Adding teleporter: (" << it2->x << ',' << 
it2->y << ") -> ";
-                       //foreach(const map_location &dest, (*destinations_it))
-                       //      ss << '(' << dest.x << ',' << dest.y << "),";
-                       //ss << "\n";
-                       //ERR_PF << ss.str();
                        teleport_map_.insert(std::make_pair(*it2, 
&(*destinations_it)));
                }
                ++sources_it;
@@ -101,12 +89,6 @@
        std::vector<std::set<map_location> >::iterator sources_it = 
sources_.begin();
        for (; sources_it != sources_.end() && destinations_it != 
destinations_.end();) {
                for (std::set<map_location>::iterator it2 = 
sources_it->begin(); it2 != sources_it->end(); ++it2) {
-                       //std::stringstream ss;
-                       //ss << "Adding teleporter: (" << it2->x << ',' << 
it2->y << ") -> ";
-                       //foreach(const map_location &dest, (*destinations_it))
-                       //      ss << '(' << dest.x << ',' << dest.y << "),";
-                       //ss << "\n";
-                       //ERR_PF << ss.str();
                        teleport_map_.insert(std::make_pair(*it2, 
&(*destinations_it)));
                }
                ++sources_it;
@@ -128,12 +110,6 @@
                return empty_;
        } else {
                const std::set<map_location>& ret = 
*(teleport_map_.find(loc)->second);
-               //TODO remove debug output
-               //ERR_PF << "Getting adjacents:\n";
-               //for (std::set<map_location>::const_iterator it = ret.begin(); 
it != ret.end(); ++it) {
-               //      ERR_PF << "location: (" << it->x << ',' << it->y << 
")\n";
-               //      assert(it->valid(200,200)); // Reasonable map-size 
assumption
-               //}
                return ret;
        }
 }


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

Reply via email to