[agent] remove dead code