Remove unused shareReplay operator

This commit is contained in:
Robin
2026-09-22 09:45:48 +02:00
parent c88f884fc9
commit 0211d5c367
-12
View File
@@ -18,7 +18,6 @@ import {
share, share,
take, take,
takeUntil, takeUntil,
shareReplay,
} from "rxjs"; } from "rxjs";
import { logger } from "matrix-js-sdk/lib/logger"; import { logger } from "matrix-js-sdk/lib/logger";
@@ -68,17 +67,6 @@ export class ObservableScope {
public readonly share: MonoTypeOperator = (input$) => public readonly share: MonoTypeOperator = (input$) =>
input$.pipe(this.bindImpl, this.shareImpl); 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 * Converts an Observable to a Behavior. If no initial value is specified, the
* Observable must synchronously emit an initial value. * Observable must synchronously emit an initial value.