your version cannot work since CCP1CON and CCPR1H are not in bank 0

and yes the code you marked red serves no purpose in the given example