Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI] Remove dead code in RemoveUnusedDefinitionsPass #27506

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

Closed
wants to merge 1 commit into from

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jun 5, 2018

Q A
Branch? 2.8
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

I don't understand what this code is for. Removing it breaks nothing.
AFAIK ResolveReferencesToAliasesPass and ReplaceAliasByActualDefinitionPass already resolved all aliases at this point, so that this is dead code.

I'd be happy to add a test case if you think I missed something, that's very possible.

ping @stof @schmittjoh

@Tobion
Copy link
Contributor

Tobion commented Jun 5, 2018

I haven't see the log message with "reason: replaces alias" before. So it's likely unused or uncommon.

@fabpot
Copy link
Member

fabpot commented Jun 6, 2018

That's for master.

@nicolas-grekas
Copy link
Member Author

This code has already been removed from master, as part of #27471 :)

@nicolas-grekas nicolas-grekas deleted the di-deadcode branch June 6, 2018 20:05
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.

5 participants