Remove useless checks.