remove unused helper is_branch_goto()