From 0211d5c367be4955cbd2a436033249c025ae3f6c Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 22 Sep 2026 09:45:48 +0200 Subject: [PATCH] Remove unused shareReplay operator --- src/state/ObservableScope.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/state/ObservableScope.ts b/src/state/ObservableScope.ts index d73adfda7..8f09cb6ef 100644 --- a/src/state/ObservableScope.ts +++ b/src/state/ObservableScope.ts @@ -18,7 +18,6 @@ import { share, take, takeUntil, - shareReplay, } from "rxjs"; import { logger } from "matrix-js-sdk/lib/logger"; @@ -68,17 +67,6 @@ export class ObservableScope { public readonly share: MonoTypeOperator = (input$) => input$.pipe(this.bindImpl, this.shareImpl); - private readonly shareReplayImpl: MonoTypeOperator = shareReplay({ - bufferSize: 1, - refCount: false, - }); - /** - * Shares (multicasts) the Observable as a hot Observable, replaying the most - * recently emitted value upon subscription. - */ - public readonly shareReplay: MonoTypeOperator = (input$) => - input$.pipe(this.bindImpl, this.shareReplayImpl); - /** * Converts an Observable to a Behavior. If no initial value is specified, the * Observable must synchronously emit an initial value.