timer_thread: remove redundant code