From bc59717cf1b53a301711d1ebbbf0d160eed1c1b2 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Fri, 28 Nov 2025 11:16:16 -0500 Subject: [PATCH] chore: remove unused function --- .../src/message_channel/message_channel.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/sds/src/message_channel/message_channel.ts b/packages/sds/src/message_channel/message_channel.ts index b5a2f4b151..88ebe3c6d7 100644 --- a/packages/sds/src/message_channel/message_channel.ts +++ b/packages/sds/src/message_channel/message_channel.ts @@ -748,26 +748,6 @@ export class MessageChannel extends TypedEventEmitter { ); } - /** - * Check if a message is available (either in localHistory or incomingBuffer) - * This prevents treating messages as "missing" when they've already been received - * but are waiting in the incoming buffer for their dependencies. - * - * @param messageId - The ID of the message to check - * @private - */ - private isMessageAvailable(messageId: MessageId): boolean { - // Check if in local history - if (this.localHistory.hasMessage(messageId)) { - return true; - } - // Check if in incoming buffer (already received, waiting for dependencies) - if (this.incomingBuffer.some((m) => m.messageId === messageId)) { - return true; - } - return false; - } - /** * Return true if the message was "delivered" *