Remove redundant range adjustment code