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

Remove unused type parameter on RegisterRouter. #2262

Merged

Conversation

richardxia
Copy link
Member

Related issue:

Type of change: other enhancement

Impact: API modification (I guess this is technically backwards incompatible)

Development Phase: implementation

Release Notes

RegisterRouter no longer takes a type parameter, as it was not being used.


I was trying to read the definition of RegisterRouter, and I was having difficulty understanding what its type parameter T <: Data was being used for. As far as I can tell, it is not being used by anything, and simply removing it and making it a non-generic type seems to work fine. If it is in fact actually being used for something, I'd love to learn more about it, since at my current level of understanding of Scala, I can't figure out how it is being used, since none of its members or methods depend on it.

@hcook
Copy link
Member

hcook commented Jan 22, 2020

Yeah, I see the IO subclass having a [T <: Data] parameter which is its out port bundle type, but not what application that has in the base class. @terpstra any thoughts?

Copy link
Contributor

@terpstra terpstra left a comment

Choose a reason for hiding this comment

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

Odd. I wonder how it got there in the first place.

@richardxia richardxia merged commit aa53d0e into master Feb 1, 2020
@richardxia richardxia deleted the remove-unnecessary-type-parameter-on-register-router branch February 1, 2020 23:36
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.

3 participants