X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Fblock.cpp;h=d4a6878a68b1b6ba475b85fd17014fe490b6cceb;hb=f42183985c65e1e12f19e9246dee90b8e7e44a34;hp=e9c170c1ccb7140911666f3ca3704892a440af90;hpb=03aa7d090507e40f6362cd242d711de4bbba8f18;p=r2c2.git diff --git a/source/libmarklin/block.cpp b/source/libmarklin/block.cpp index e9c170c..d4a6878 100644 --- a/source/libmarklin/block.cpp +++ b/source/libmarklin/block.cpp @@ -5,7 +5,6 @@ Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ -#include #include "control.h" #include "block.h" #include "tracktype.h" @@ -141,23 +140,6 @@ bool Block::reserve(const Train *t) return false; } -void Block::print_debug() -{ - cout<<"Block "<get_sensor_id()) - cout<<", sensor="<<(*tracks.begin())->get_sensor_id(); - cout<<'\n'; - for(vector::iterator i=endpoints.begin(); i!=endpoints.end(); ++i) - { - cout<<" Endpoint, link="; - if(i->link) - cout<link->id; - else - cout<<"none"; - cout<<", paths="<paths<<'\n'; - } -} - void Block::find_paths(Track &track, unsigned track_ep, unsigned path, set &visited) { visited.insert(&track);