From 75a8dd21ebb57bb24027d1952fc9b0c1684c2fef Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 22 Oct 2025 23:16:52 -0400 Subject: [PATCH] Remove some dead code --- src/livekit/openIDSFU.ts | 7 ------- src/utils/abortHandle.ts | 18 ------------------ 2 files changed, 25 deletions(-) delete mode 100644 src/utils/abortHandle.ts diff --git a/src/livekit/openIDSFU.ts b/src/livekit/openIDSFU.ts index a288ec57..70d1786d 100644 --- a/src/livekit/openIDSFU.ts +++ b/src/livekit/openIDSFU.ts @@ -16,13 +16,6 @@ export interface SFUConfig { jwt: string; } -export function sfuConfigEquals(a?: SFUConfig, b?: SFUConfig): boolean { - if (a === undefined && b === undefined) return true; - if (a === undefined || b === undefined) return false; - - return a.jwt === b.jwt && a.url === b.url; -} - // The bits we need from MatrixClient export type OpenIDClientParts = Pick< MatrixClient, diff --git a/src/utils/abortHandle.ts b/src/utils/abortHandle.ts deleted file mode 100644 index f4bb2ef5..00000000 --- a/src/utils/abortHandle.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright 2025 New Vector Ltd. - -SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial -Please see LICENSE in the repository root for full details. -*/ - -export class AbortHandle { - public constructor(private aborted = false) {} - - public abort(): void { - this.aborted = true; - } - - public isAborted(): boolean { - return this.aborted; - } -}