delete useless condition