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 internal run #554

Merged
merged 4 commits into from
Apr 19, 2024
Merged

remove internal run #554

merged 4 commits into from
Apr 19, 2024

Conversation

macklin-10x
Copy link
Contributor

@macklin-10x macklin-10x commented Apr 18, 2024

Removes the internal_run flag and everything related to the config system.

@macklin-10x macklin-10x marked this pull request as ready for review April 18, 2024 17:10
Comment on lines -98 to -100
// Fix IGHJ6.
if s == *"ATTACTACTACTACTACGGTATGGACGTCTGGGGCCAAGGGACCACGGTCACCGTCTCCTCA"
|| s == *"ATTACTACTACTACTACTACATGGACGTCTGGGGCAAAGGGACCACGGTCACCGTCTCCTCA"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, this looks like potentially useful information about the reference buried here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we archive this somewhere useful?

Comment on lines +49 to +59
// let mut config = HashMap::<String, String>::new();
// let mut config_file = String::new();
// for (key, value) in env::vars() {
// if key == "ENCLONE_CONFIG" {
// config_file = value.to_string();
// if config_file.contains(',') {
// config_file = config_file.after(",").to_string();
// }
// }
// }
// let _ = get_config(&config_file, &mut config);
Copy link
Collaborator

Choose a reason for hiding this comment

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

No point keeping these lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opted to leave them in place; this entire executable will never run again, so we should either attempt to preserve it even in the face of refactoring, or go ahead and delete the entire thing.

let mut remote_version_file = String::new();
let mut remote_version = None;
if get_config(&config_file, &mut config) {
// if get_config(&config_file, &mut config) {
if false {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we remove this block too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same thing here - we're probably never going to run this code again. If I start deleting code from here, it results in a cascade of "unused" vars.

@macklin-10x macklin-10x merged commit 1e780de into master Apr 19, 2024
2 checks passed
@macklin-10x macklin-10x deleted the macklin/remove-internal-run branch April 19, 2024 23:05
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.

2 participants