Skip to content

Remove unused code#2848

Merged
messense merged 1 commit intoPyO3:mainfrom
e-nomem:remove-unused-code
Nov 12, 2025
Merged

Remove unused code#2848
messense merged 1 commit intoPyO3:mainfrom
e-nomem:remove-unused-code

Conversation

@e-nomem
Copy link
Copy Markdown
Contributor

@e-nomem e-nomem commented Nov 11, 2025

The removed methods don't seem to be used anywhere and, with them removed, there is no need to keep track of file hashes for the PathWriter.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes unused code from the PathWriter struct, specifically three methods (venv(), delete_dir(), and write_record()) that have no callers in the codebase. With these methods removed, the record field that tracked file hashes is also no longer needed.

  • Removed the record field from PathWriter struct
  • Removed three unused public methods from PathWriter
  • Removed hash tracking code from PathWriter::add_bytes_with_permissions
  • Removed unused BridgeModel from imports

@messense messense enabled auto-merge (squash) November 12, 2025 06:23
@messense messense merged commit 729225f into PyO3:main Nov 12, 2025
87 of 90 checks passed
@e-nomem e-nomem deleted the remove-unused-code branch November 12, 2025 14:27
messense pushed a commit that referenced this pull request Nov 19, 2025
The removed methods don't seem to be used anywhere and, with them
removed, there is no need to keep track of file hashes for the
`PathWriter`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants