]> git.tdb.fi Git - r2c2.git/commitdiff
Remove some unnecessary braces and an outdated comment
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:13:14 +0000 (21:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:13:14 +0000 (21:13 +0300)
source/libr2c2/arducontrol.cpp
source/libr2c2/trainai.h

index dd4e0574eb7d52c4714e8740db3e99c20be40ed8..eb97d4914e1172a427542516832a20f7b4904a5e 100644 (file)
@@ -357,9 +357,7 @@ void ArduControl::tick()
 
                        Accessory &acc = i->second;
                        if(tag.command==Accessory::ACTIVATE)
-                       {
                                off_timeout = Time::now()+acc.active_time;
-                       }
                        else if(tag.command==Accessory::DEACTIVATE)
                        {
                                if(acc.state.commit(tag.serial))
index 85c27b794742e456292f18468b5163a8340dceff..b3412c5442e18b3b7fffe4ac516d2b58b9558a2c 100644 (file)
@@ -16,8 +16,6 @@ Base class for train AIs.
 
 AIs can help the user in various ways, ranging from automatically stopping the
 train at the end of allocated track to autonomously running a train.
-
-XXX The timestamp should be removed from tick, but Timetable depends on it
 */
 class TrainAI
 {