Remove redundant code in create_gather_merge_path

Remove redundant code in create_gather_merge_path

Edit