]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/block.cpp
Attempt to estimate the exact positions of trains from measured speed data
[r2c2.git] / source / libmarklin / block.cpp
index 03cb2dc3fa60c259f64590ed015a58f789c11c0f..94be126c77d088c1b44ba63303a99253a0338957 100644 (file)
@@ -5,16 +5,15 @@ Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
+#include <iostream>
 #include "control.h"
 #include "block.h"
 #include "tracktype.h"
 #include "trafficmanager.h"
 #include "turnout.h"
 
-using namespace Msp;
-
-#include <iostream>
 using namespace std;
+using namespace Msp;
 
 namespace Marklin {
 
@@ -135,10 +134,6 @@ bool Block::reserve(const Train *t)
        if(!t || !train)
        {
                train=t;
-               if(train)
-                       cout<<"Block "<<this<<" reserved for train "<<train->get_name()<<'\n';
-               else
-                       cout<<"Block "<<this<<" freed\n";
                trfc_mgr.signal_block_reserved.emit(*this, train);
                return true;
        }