From 487e185ef88e33e8a85ca02f478c52c451dcaae0 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Fri, 2 Oct 2015 12:06:12 +0300 Subject: [PATCH] perf(ReplaySubject): remove unnecessary computation Remove unnecessary call to _getEvents() in ReplaySubject's _next(). No apparent reason for doing this. All tests still pass after this commit. --- src/subjects/ReplaySubject.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/subjects/ReplaySubject.ts b/src/subjects/ReplaySubject.ts index e67147d458..f260401504 100644 --- a/src/subjects/ReplaySubject.ts +++ b/src/subjects/ReplaySubject.ts @@ -24,7 +24,6 @@ export default class ReplaySubject extends Subject { _next(value?) { const now = this._getNow(); this.events.push(new ReplayEvent(now, value)); - this._getEvents(now); super._next(value); }