RUIAN: remove needless nodes