Skip to content

chore: remove dead Python code - #1761

Merged
pbeza merged 2 commits into
mainfrom
pab/python-cleanup
Jan 14, 2026
Merged

pbeza merged 2 commits into
mainfrom
pab/python-cleanup

Conversation

@pbeza

@pbeza pbeza commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1762

Inspired by #1725 (comment).

@pbeza pbeza changed the title refactor: remove dead Python code chore: remove dead Python code Jan 14, 2026
@pbeza
pbeza force-pushed the pab/python-cleanup branch from 24bf41b to 4fb2440 Compare January 14, 2026 17:44
@pbeza
pbeza force-pushed the pab/python-cleanup branch from 4fb2440 to b8442ed Compare January 14, 2026 17:48
@pbeza
pbeza marked this pull request as ready for review January 14, 2026 17:52
Copilot AI review requested due to automatic review settings January 14, 2026 17:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Python code from the pytest test suite, including dead methods, classes, imports, and constants that are no longer referenced anywhere in the codebase.

Changes:

  • Removed unused methods from MPC node and cluster classes
  • Removed unused classes and constants from contracts module
  • Removed unused helper methods from participants and CKD modules

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pytest/common_lib/shared/mpc_node.py Removed change_contract_id method and ruamel.yaml import
pytest/common_lib/shared/mpc_cluster.py Removed run_all and get_config methods
pytest/common_lib/contracts.py Removed json import, constants, classes, and enum values for contract updates
pytest/common_lib/contract_state.py Removed ids and by_id methods from Participants class
pytest/common_lib/ckd.py Removed b58encode_g2 function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pytest/common_lib/contracts.py Outdated
Comment thread pytest/common_lib/contracts.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@netrome netrome left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice, thanks for spotting and removing the dead code! 🙏

@pbeza
pbeza enabled auto-merge January 14, 2026 19:09
@pbeza
pbeza added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main with commit 69cc5b3 Jan 14, 2026
25 checks passed
@pbeza
pbeza deleted the pab/python-cleanup branch January 14, 2026 19:48
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.

Remove unused Python code

4 participants