Remove useless bound checks.