Remove AddPolicies as redundant
Description
Injection members, when registered, presented with the opportunity to add custom policies to the registration. The method AddPolicies is called on each member with registration passed to the method.
Problem
Unity container is no longer relies on policies to implement registrations. Instead of creating and injecting custom policies, each injected member acts as a policy itself. During resolution strategies are scanning registered injection members and use them as appropriate.
Although policies are not used, container calls this method on each injection member during registration. This creates significant overhead and could be optimized.
Solution
The method should be removed as redundant
Impact
This is a breaking change for all custom injection members. Custom injection members relying on this method to install additional registration data should be re-implemented.