Browse code

client/pkg/jsonmessage: remove DisplayJSONMessagesToStream

It was an adaptor around DisplayJSONMessagesStream for CLI-specific
primitives that was used in the CLI, but can be implemented by users
of this package.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/07/31 05:56:45
Showing 2 changed files
... ...
@@ -288,9 +288,3 @@ type Stream interface {
288 288
 	FD() uintptr
289 289
 	IsTerminal() bool
290 290
 }
291
-
292
-// DisplayJSONMessagesToStream prints json messages to the output Stream. It is
293
-// used by the Docker CLI to print JSONMessage streams.
294
-func DisplayJSONMessagesToStream(in io.Reader, stream Stream, auxCallback func(JSONMessage)) error {
295
-	return DisplayJSONMessagesStream(in, stream, stream.FD(), stream.IsTerminal(), auxCallback)
296
-}
... ...
@@ -288,9 +288,3 @@ type Stream interface {
288 288
 	FD() uintptr
289 289
 	IsTerminal() bool
290 290
 }
291
-
292
-// DisplayJSONMessagesToStream prints json messages to the output Stream. It is
293
-// used by the Docker CLI to print JSONMessage streams.
294
-func DisplayJSONMessagesToStream(in io.Reader, stream Stream, auxCallback func(JSONMessage)) error {
295
-	return DisplayJSONMessagesStream(in, stream, stream.FD(), stream.IsTerminal(), auxCallback)
296
-}