Remove dead code from ast.vector