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

internal/static: remove unreachable code #55

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Mar 21, 2024

While #15 removed static mode and operator from being reachable from the binary, all static mode code remained in the database to be removed later.

This commit removes all unreachable code; what remains is constrained to config structre which is still used for config conversion.

This commit does accidentally remove code that changed the order of static mode conversion components. This isn't a big deal, and the converted configs are still correct, so that code is being left out rather than being hunted down. (It is likely code that implements an interface but wasn't called directly.)

To verify the changed order of staticconvert tests doesn't matter, I ran the tests 30 times to confirm consistent results.

While #15 removed static mode and operator from being
reachable from the binary, all static mode code remained in the database
to be removed later.

This commit removes all unreachable code; what remains is constrained to
config structre which is still used for config conversion.

This commit does accidentally remove code that changed the order of
static mode conversion components. This isn't a big deal, and the
converted configs are still correct, so that code is being left out
rather than being hunted down. (It is likely code that implements an
interface but wasn't called directly.)
@rfratto rfratto changed the title all: remove dead code from static mode internal/static: remove dead code from static mode Mar 21, 2024
@rfratto rfratto changed the title internal/static: remove dead code from static mode internal/static: remove unreachable code Mar 21, 2024
@rfratto rfratto merged commit 4272894 into main Mar 21, 2024
9 checks passed
@rfratto rfratto deleted the remove-dead-code-static branch March 21, 2024 15:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
@rfratto rfratto added the backport-to-agent:no PR should NOT be backported to the agent repo. label Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport-to-agent:no PR should NOT be backported to the agent repo. frozen-due-to-age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant