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 unused code from starkware_utils #440

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GMKrieger
Copy link
Collaborator

Issue Number: N/A

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

Removed several unused methods and unreachable code from starkware_utils.

Breaking changes?

  • yes
  • no

@@ -174,20 +174,7 @@ where
ffc: &'a mut FactFetchingContext<S, H>,
indices: &'a [TreeIndex],
facts: &'a mut Option<BinaryFactDict>,
) -> impl std::future::Future<Output = Result<HashMap<TreeIndex, LF>, TreeError>> + Send {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason why you have removed this default implementation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No particular reason except it's never used. This trait is only implemented in virtual_patricia_node.rs, and it has it's own implementation of _get_leaves.

Copy link
Collaborator

@whichqua whichqua left a comment

Choose a reason for hiding this comment

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

Left a single comment but most seems good.

Copy link
Collaborator

@ftheirs ftheirs left a comment

Choose a reason for hiding this comment

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

This looks good 💪

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