From 196c1a0a2f5dd8141aa499dae7d01cad522ab028 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 30 Mar 2014 21:13:14 +0300 Subject: [PATCH] Remove some unnecessary braces and an outdated comment --- source/libr2c2/arducontrol.cpp | 2 -- source/libr2c2/trainai.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/source/libr2c2/arducontrol.cpp b/source/libr2c2/arducontrol.cpp index dd4e057..eb97d49 100644 --- a/source/libr2c2/arducontrol.cpp +++ b/source/libr2c2/arducontrol.cpp @@ -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)) diff --git a/source/libr2c2/trainai.h b/source/libr2c2/trainai.h index 85c27b7..b3412c5 100644 --- a/source/libr2c2/trainai.h +++ b/source/libr2c2/trainai.h @@ -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 { -- 2.43.0