Removed unused ORPI calculation code