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

refactor(Subscription): remove the type parameter from Subscription #1065

Closed
wants to merge 3 commits into from
Closed

refactor(Subscription): remove the type parameter from Subscription #1065

wants to merge 3 commits into from

Conversation

tetsuharuohzeki
Copy link
Contributor

This type parameter is not used actually.

@@ -1,14 +1,14 @@
import {noop} from './util/noop';

export class Subscription<T> {
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, makes sense to me. 👍

@kwonoj
Copy link
Member

kwonoj commented Dec 15, 2015

Yes, this seems quite legit to me too.

@@ -3,8 +3,8 @@ import {Subject} from '../Subject';
import {Subscriber} from '../Subscriber';
import {Observable} from '../Observable';

export class RefCountSubscription<T> extends Subscription<T> {
primary: Subscription<T>;
export class RefCountSubscription<T> extends Subscription {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can also remove the type parameter from RefCountSubscription<T>. What do you think?

@tetsuharuohzeki
Copy link
Contributor Author

I think you can also remove the type parameter from RefCountSubscription. What do you think?
Same here.

okay. I removed them!

@luisgabriel
Copy link
Contributor

LGTM.

@kwonoj
Copy link
Member

kwonoj commented Dec 16, 2015

Change looks good to me too.

@tetsuharuohzeki
Copy link
Contributor Author

rebased! I resolved the conflict

@benlesh
Copy link
Member

benlesh commented Dec 16, 2015

LGTM. cc/ @kwonoj

@kwonoj
Copy link
Member

kwonoj commented Dec 16, 2015

I'll check in this today.

@kwonoj
Copy link
Member

kwonoj commented Dec 16, 2015

Actually, doing it now...

@kwonoj
Copy link
Member

kwonoj commented Dec 16, 2015

Merged with a8941d7, thanks @saneyuki . Appreciate for effort along with nice catch.

@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants