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

Obsolete methods that can be removed safely #377

Merged
merged 3 commits into from Feb 12, 2018
Merged

Obsolete methods that can be removed safely #377

merged 3 commits into from Feb 12, 2018

Conversation

ghost
Copy link

@ghost ghost commented Feb 8, 2018

This addresses obsolescence from issue #338

This PR mainly targets:

  • ActAs
  • Parameters
  • ServiceOverrides
  • Properties
  • Most methods in DefaultKernel_ObsoleteAPI
  • Most methods in WindsorContainer_ObsoleteAPI

Obsolete methods that can be removed safely:

  • Removed obsolete Resolve methods from IKernel/DefaultKernel && IWindsorContainer/WindsorContainer
  • Removed the obsolete AddComponent methods from IKernel/DefaultKernel
  • Removed the obsolete indexer from IKernel/DefaultKernel && IWindsorContainer/WindsorContainer
  • Removed the obsolete Properties methods from Component Registration
  • Removed the obsolete ServiceOverrides methods from Component Registration
  • Removed the obsolete Parameter method from Component Registration
  • Removed the obsolete ActAs method from Component Registrations and updated documentation

Obsolete methods that cannot be removed safely:

  • IKernel/DefaultKernel AddFacility(String key, IFacility facility)
  • IWindsorContainer/WindsorContainer AddFacility(String key, IFacility facility)

Still need to update CHANGELOG.md but will wait to avoid merge conflict.

@ghost ghost changed the title Obsolete methods that can be removed safely: Obsolete methods that can be removed safely Feb 8, 2018
@ghost ghost requested a review from jonorossi February 8, 2018 22:36
@@ -65,26 +65,6 @@ container.Register(
);
```

### What does ActAs do?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to remove ActAs from ComponentRegistration?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must have accidentally omitted that commit when I squished everything.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All fixed

@jonorossi
Copy link
Member

Looks good, just a comment about ActAs.

Gavin van der Merwe added 3 commits February 11, 2018 19:19
This PR mainly targets:

 - ActAs
 - Parameters
 - ServiceOverrides
 - Properties
 - Most methods in DefaultKernel_ObsoleteAPI
 - Most methods in WindsorContainer_ObsoleteAPI

Obsolete methods that can be removed safely:

 - Removed obsolete Resolve methods from IKernel/DefaultKernel && IWindsorContainer/WindsorContainer
 - Removed the obsolete AddComponent methods from IKernel/DefaultKernel
 - Removed the obsolete indexer from IKernel/DefaultKernel && IWindsorContainer/WindsorContainer
 - Removed the obsolete Properties methods from Component Registration
 - Removed the obsolete ServiceOverrides methods from Component Registration
 - Removed the obsolete Parameter method from Component Registration
 - Removed the obsolete ActAs method from Component Registrations and updated documentation

Obsolete methods that cannot be removed safely:

 - IKernel/DefaultKernel AddFacility(String key, IFacility facility)
 - IWindsorContainer/WindsorContainer AddFacility(String key, IFacility facility)

Still need to update CHANGELOG.md but will wait to avoid merge conflict.
@jonorossi
Copy link
Member

All good.

@jonorossi jonorossi merged commit 00f7a7e into castleproject:master Feb 12, 2018
@jonorossi jonorossi added this to the v5.0 milestone Feb 12, 2018
@ghost
Copy link
Author

ghost commented Feb 12, 2018

Thanks. I will come back on the other PR tomorrow night.

@ghost ghost deleted the obsolete-removal branch June 22, 2018 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant