From 3c1c6f8d21b85c3e447d9b0daeda973afbff0cf4 Mon Sep 17 00:00:00 2001 From: tabcat Date: Sun, 30 Jul 2023 21:19:14 -0500 Subject: [PATCH] fix: Remove Stream methods from Connection remove (add|remove)Stream from connection interface Related: #1855 --- packages/interface/src/connection/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/interface/src/connection/index.ts b/packages/interface/src/connection/index.ts index 6a2100f75d..2bed6736a1 100644 --- a/packages/interface/src/connection/index.ts +++ b/packages/interface/src/connection/index.ts @@ -258,16 +258,6 @@ export interface Connection { */ newStream: (protocols: string | string[], options?: NewStreamOptions) => Promise - /** - * Add a stream to this connection - */ - addStream: (stream: Stream) => void - - /** - * Remove a stream from this connection - */ - removeStream: (id: string) => void - /** * Gracefully close the connection. All queued data will be written to the * underlying transport.