Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove functionality to merge duplicates #116

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

Pennycook
Copy link
Contributor

We previously disabled this functionally by setting merge_duplicates=False, but stopped short of removing the code.

Related issues

Arguably part of #36 -- all the code removed by this PR was previously unreachable and untested.

Proposed changes

  • Remove merge_duplicates because it's always False.
  • Remove _map_filename() because it does nothing when merge_duplicates=False.
  • Remove FileInfo and compute_file_hash because they were only used by _map_filename.

We previously disabled this functionally unconditionally by setting
merge_duplicates=False, but stopped short of removing the code.

This commit removes the merge_duplicates variable completely, along with
any code unreachable when merge_duplicates is set to False.

Signed-off-by: John Pennycook <[email protected]>
@Pennycook Pennycook added the refactor Improvements to code structure label Sep 26, 2024
@Pennycook Pennycook added this to the 2.0.0 milestone Sep 26, 2024
@Pennycook Pennycook merged commit 48a280d into intel:main Oct 9, 2024
3 checks passed
@Pennycook Pennycook deleted the remove-merge-duplicates branch October 9, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code structure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants