mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 19:50:20 +00:00
Remove iostreams include again, but commenting out a bit of debug code too
There should be really no reason to include iostreams in header files and force its contents upon units that don't require it.
This commit is contained in:
parent
c236b725f9
commit
73ff9dd06f
@ -24,7 +24,6 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <list>
|
||||
#include <iostream>
|
||||
#include <boost/unordered_map.hpp>
|
||||
|
||||
class unit;
|
||||
@ -191,11 +190,14 @@ public:
|
||||
return i_->unit; }
|
||||
reference operator*() const {
|
||||
tank_->self_check();
|
||||
#if 0
|
||||
// debug!
|
||||
if(!valid()){
|
||||
if(!tank_){std::cerr<<"tank is NULL"<<"\n";}
|
||||
if(i_==the_end()){std::cerr<<"i_ is the end"<<"\n";}
|
||||
if(i_->unit==NULL){std::cerr<<"i_ unit is NULL with uid="<<i_->deleted_uid<<"\n";}
|
||||
}
|
||||
#endif
|
||||
assert(valid());
|
||||
return *i_->unit; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user