mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Remove unused shareReplay operator
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user