Remove redundant EOF checks.