]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Transform to C++: TimedFSM
authorPetr Silhavik <silhavik.p@gmail.com>
Sat, 27 Oct 2012 18:21:45 +0000 (20:21 +0200)
committerPetr Silhavik <silhavik.p@gmail.com>
Sat, 27 Oct 2012 18:21:45 +0000 (20:21 +0200)
Remove functions that are not necessary.

src/boostFSM/test/timed_fsm_test.cpp

index 8b0087a4035b6681845597b877f9c154a2baf04b..c415ac605d5ae73116370166551d9f9953b9f83b 100644 (file)
@@ -168,28 +168,16 @@ private:
 
 struct MyStateMachine : sc::asynchronous_state_machine<MyStateMachine, State1, Scheduler>, TimerList
 {
-       typedef std::list<Timer *> *timList;
        MyStateMachine(my_context ctx) : my_base(ctx) {
                printf("%s\n", __FUNCTION__);
        }
-       timList returnList()
-       {
-               printf("%s\n", __FUNCTION__);
-               return &timeouts;
-       }
 };
 
 struct MyStateMachine2 : sc::asynchronous_state_machine<MyStateMachine2, State3, Scheduler>, TimerList
 {
-       typedef std::list<Timer *> *timList;
        MyStateMachine2(my_context ctx) : my_base(ctx) {
                printf("%s\n", __FUNCTION__);
        }
-       timList returnList()
-       {
-               printf("%s\n", __FUNCTION__);
-               return &timeouts;
-       }
 };
 
 struct Ev1 : sc::event< Ev1 > {