Skip to content

Comments

Delete dead code#9197

Merged
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:delete-dead-code
Oct 20, 2023
Merged

Delete dead code#9197
Ericson2314 merged 2 commits intoNixOS:masterfrom
obsidiansystems:delete-dead-code

Conversation

@Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Oct 20, 2023

Motivation

Neither of these things are in use.

Context

Remove prevInfos as its dead code

It is unused since 8e0946e removed support for the repeat and enforce-determinism options.

Remove the ValidPathInfo == operator

It is dead code. It was added in 8e0946e as part of the repeated / enforce-determinism feature, but that was removed in 8fdd156.

It is not good because it skips many fields. For testing purposes we will soon want to add a new one that doesn't skip fields, but we want to make sure making == sensitive to those fields won't change how Nix works. Proving in this commit that the old version is dead code achieves that.

Priorities

Add 👍 to pull requests you find important.

It is unused since 8e0946e removed
support for the repeat and enforce-determinism options.
It is dead code. It was added in
8e0946e as part of the repeated /
enforce-determinism feature, but that was removed in
8fdd156.

It is not good because it skips many fields. For testing purposes we
will soon want to add a new one that doesn't skip fields, but we want to
make sure making == sensitive to those fields won't change how Nix
works. Proving in this commit that the old version is dead code achieves
that.
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.

1 participant