Author: ai0867
Date: Thu Jan 14 23:52:47 2010
New Revision: 40700
URL: http://svn.gna.org/viewcvs/wesnoth?rev=40700&view=rev
Log:
Remove check for an error that cannot occur
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=40700&r1=40699&r2=40700&view=diff
==============================================================================
--- branches/fendrin_pathfind/src/pathfind.cpp (original)
+++ branches/fendrin_pathfind/src/pathfind.cpp Thu Jan 14 23:52:47 2010
@@ -54,11 +54,6 @@
++sources_it;
++destinations_it;
}
- if (sources_it != sources_.end()) {
- ERR_PF << "More sources than destinations\n";
- } else if (destinations_it != destinations_.end()) {
- ERR_PF << "More destinations than sources\n";
- }
}
teleport_map::teleport_map(const teleport_map &other) : teleport_map_(),
sources_(other.sources_), destinations_(other.destinations_), empty_() {
@@ -71,11 +66,6 @@
++sources_it;
++destinations_it;
}
- if (sources_it != sources_.end()) {
- ERR_PF << "More sources than destinations\n";
- } else if (destinations_it != destinations_.end()) {
- ERR_PF << "More destinations than sources\n";
- }
}
teleport_map& teleport_map::operator=(const teleport_map &other) {
@@ -93,11 +83,6 @@
}
++sources_it;
++destinations_it;
- }
- if (sources_it != sources_.end()) {
- ERR_PF << "More sources than destinations\n";
- } else if (destinations_it != destinations_.end()) {
- ERR_PF << "More destinations than sources\n";
}
return *this;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits