refactor(injector): remove unused code

The removed code isn't being used:
- there isn't a single place in the code where `invoke` would be
called with a string argument in the third position.
- the fourth parameter is also not documented,
so when called from outside of the framework's source,
the third parameter is meant to be the locals object.