raft: remove unused code