Remove unused cp_val variable