From c180202cea81afa52daf579a8d640c3b634d1c5e Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 31 Mar 2023 02:28:06 +0200 Subject: [PATCH] cli/command: remove deprecated Stream types These were deprecated in eb0ba4f8d54eb243565e8479f9d20f279b84d8cb, which was part of docker 19.03, so users should have had a chance to migrate. This removes InStream, OutStream, NewInStream and NewOutStream Signed-off-by: Sebastiaan van Stijn --- cli/command/streams.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 cli/command/streams.go diff --git a/cli/command/streams.go b/cli/command/streams.go deleted file mode 100644 index 43dc6cd00e..0000000000 --- a/cli/command/streams.go +++ /dev/null @@ -1,32 +0,0 @@ -package command - -import ( - "io" - - "github.com/docker/cli/cli/streams" -) - -// InStream is an input stream used by the DockerCli to read user input -// -// Deprecated: Use [streams.In] instead. -type InStream = streams.In - -// OutStream is an output stream used by the DockerCli to write normal program -// output. -// -// Deprecated: Use [streams.Out] instead. -type OutStream = streams.Out - -// NewInStream returns a new [streams.In] from an [io.ReadCloser]. -// -// Deprecated: Use [streams.NewIn] instead. -func NewInStream(in io.ReadCloser) *streams.In { - return streams.NewIn(in) -} - -// NewOutStream returns a new [streams.Out] from an [io.Writer]. -// -// Deprecated: Use [streams.NewOut] instead. -func NewOutStream(out io.Writer) *streams.Out { - return streams.NewOut(out) -}