-
Notifications
You must be signed in to change notification settings - Fork 27.4k
refactor(injector): remove unused code #8273
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
This is really a convenience for 3rd party libraries which use the smart-injector style for providing more debug information. I don't feel good about breaking that just because we don't use it internally. It's not clear whether anyone is actually using it yet, but they might at some point |
Thanks for your quick response! |
well hang on, maybe the original PR isn't a bad idea. I'm thinking about it. |
Okay - please let me know. |
@caitp Can you explain how a 3rd party library might actually use this functionality? |
It's just a simpler way to call it, for instance Obviously this is in the slot for But basically what it does is provides some extra metadata about the service being instantiated or invoked, in order to make it easier to find where the problem lies. |
Okay - @caitp - would you like me to remove those first three lines from |
Ah, as is done in unit testing, typically. Seems like just passing an empty |
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
The removed code isn't being used:
invoke
would becalled with a string argument in the third position.
so when called from outside of the framework's source,
the third parameter is meant to be the locals object.