remove dead code in yaml component