[aml] remove dead code