From 3eb0e1e8ac7b4099af0a4f021c02efa8609edc25 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 22 Jan 2025 13:38:56 +0100 Subject: [PATCH] libpod: remove unused ExecStartAndAttach() Signed-off-by: Paul Holzinger --- libpod/container_exec.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libpod/container_exec.go b/libpod/container_exec.go index 42f6eae9e4..69a1c356d2 100644 --- a/libpod/container_exec.go +++ b/libpod/container_exec.go @@ -284,11 +284,7 @@ func (c *Container) ExecStart(sessionID string) error { return c.save() } -func (c *Container) ExecStartAndAttach(sessionID string, streams *define.AttachStreams, newSize *resize.TerminalSize) error { - return c.execStartAndAttach(sessionID, streams, newSize, false) -} - -// ExecStartAndAttach starts and attaches to an exec session in a container. +// execStartAndAttach starts and attaches to an exec session in a container. // newSize resizes the tty to this size before the process is started, must be nil if the exec session has no tty func (c *Container) execStartAndAttach(sessionID string, streams *define.AttachStreams, newSize *resize.TerminalSize, isHealthcheck bool) error { if !c.batched {