raft: remove extra code