libpod: remove unused ExecStartAndAttach()

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-01-22 13:38:56 +01:00
committed by openshift-cherrypick-robot
parent c211617cad
commit e24ccdd27b

View File

@ -284,11 +284,7 @@ func (c *Container) ExecStart(sessionID string) error {
return c.save() return c.save()
} }
func (c *Container) ExecStartAndAttach(sessionID string, streams *define.AttachStreams, newSize *resize.TerminalSize) error { // execStartAndAttach starts and attaches to an exec session in a container.
return c.execStartAndAttach(sessionID, streams, newSize, false)
}
// 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 // 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 { func (c *Container) execStartAndAttach(sessionID string, streams *define.AttachStreams, newSize *resize.TerminalSize, isHealthcheck bool) error {
if !c.batched { if !c.batched {