From 64a2497e62ecc668fe65d122c01bf2d1125d39b1 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 22 Nov 2025 10:52:26 +0100 Subject: [PATCH] remove redundant methods in Transport --- src/Server/Transport/InMemoryTransport.php | 6 ------ src/Server/Transport/StreamableHttpTransport.php | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/Server/Transport/InMemoryTransport.php b/src/Server/Transport/InMemoryTransport.php index d567d096..934eeb34 100644 --- a/src/Server/Transport/InMemoryTransport.php +++ b/src/Server/Transport/InMemoryTransport.php @@ -21,8 +21,6 @@ */ class InMemoryTransport extends BaseTransport implements TransportInterface { - use ManagesTransportCallbacks; - /** * @param list $messages */ @@ -33,10 +31,6 @@ public function __construct( parent::__construct($logger); } - public function initialize(): void - { - } - public function onMessage(callable $listener): void { $this->messageListener = $listener; diff --git a/src/Server/Transport/StreamableHttpTransport.php b/src/Server/Transport/StreamableHttpTransport.php index dcac42dd..32a20586 100644 --- a/src/Server/Transport/StreamableHttpTransport.php +++ b/src/Server/Transport/StreamableHttpTransport.php @@ -60,10 +60,6 @@ public function __construct( ], $corsHeaders); } - public function initialize(): void - { - } - public function send(string $data, array $context): void { $this->immediateResponse = $data;