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

chore: remove dead code from multiple modules (easy) #828

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

huitseeker
Copy link
Member

@huitseeker huitseeker commented Nov 1, 2023

  • Removed redundant and unused functions across multiple files including hash_witness.rs, z_data/z_store.rs, eval/mod.rs, and symbol.rs.

Remaining unused items are in the following categories:

  • in a module we don't want to touch today (Towards Lurk alpha cleanup + Lurk Beta #804), and where removal needs some thought, e.g. parse_code, parse_space, parse_line_comment, assert_all_paths_taken, construct, construct_strcons,
  • small utilities which removal wouldn't be significant, e.g. is_evaluation, is_root_symbol, push_tag, push_symbol, push_default, to_z_expr, is_coprocessor
  • related to underused functionality we know we'll want to extend the use of:
    • supernova (supernova_circuit_params, supernova_aux_params, supernova_public_params),
    • opaque pointers (intern_maybe_opaque_fun, intern_maybe_opaque_sym, hidden, get_opaque_ptr, new_opaque_pr, ...)
    • public parameter caching (circuit_cache_key, with_public_params)

Closes #214

@huitseeker huitseeker requested a review from a team as a code owner November 1, 2023 16:18
- Removed redundant and unused functions across multiple files including `hash_witness.rs`, `z_data/z_store.rs`, `eval/mod.rs`, and `symbol.rs`.

Remaining unused items are in the following categories:
- in a module we don't want to touch today (argumentcomputer#804), and where removal needs some thought, e.g. `parse_code`, `parse_space`, `parse_line_comment`, `assert_all_paths_taken`, `construct`, `construct_strcons`,
- small utilities which removal wouldn't be significant, e.g. `is_evaluation`, `is_root_symbol`, `push_tag`, `push_symbol`, `push_default`, `to_z_expr`, `is_coprocessor`
- related to underused functionality we know we'll want to extend the use of:
    - supernova (`supernova_circuit_params`, `supernova_aux_params`, `supernova_public_params`),
    - opaque pointers (`intern_maybe_opaque_fun`, `intern_maybe_opaque_sym`, `hidden`, `get_opaque_ptr`, `new_opaque_pr`, ...)
    - public parameter caching (`circuit_cache_key`, `with_public_params`)
@huitseeker huitseeker changed the title chore: remove dead code from multiple modules chore: remove dead code from multiple modules (easy) Nov 1, 2023
Copy link
Member

@arthurpaulino arthurpaulino left a comment

Choose a reason for hiding this comment

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

🧹

@huitseeker huitseeker added this pull request to the merge queue Nov 1, 2023
Merged via the queue into argumentcomputer:master with commit 7f6069e Nov 1, 2023
13 checks passed
@huitseeker huitseeker deleted the delete_dead_code branch November 1, 2023 17:20
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.

Clean up possibly orphaned functions
2 participants