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 dead code in poolbuilder #10772

Closed
wants to merge 1 commit into from
Closed

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented May 12, 2022

In #8850 and specifically 912aecb#diff-d6d8d75ac1397a615f08c7a046ddbb11ad1ae869623f120be02ccd3c8e49b583L202 I think this whole loop was made useless.

The way it looks, it puts $package inside $aliasedPackages, then creates a constraint with the package's version, and then checks if that constraint matches the version, so $found will always end up being true as $package's version is always equal to itself, and aliases are never unset/removed.

cc @Toflar

@Seldaek Seldaek added this to the 2.3 milestone May 12, 2022
@Seldaek Seldaek requested a review from naderman May 12, 2022 10:02
@Seldaek
Copy link
Member Author

Seldaek commented May 12, 2022

Closing as #10773 took over the code for greater purposes instead of deleting it.

@Seldaek Seldaek closed this May 12, 2022
@Seldaek Seldaek deleted the dead_code branch May 12, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants