remove useless dart code