Remove unused exec session helper

This commit is contained in:
Fedor Korotkov 2026-05-04 16:18:50 -04:00
parent 29036b5942
commit 98eac61e89
1 changed files with 0 additions and 25 deletions

View File

@ -377,31 +377,6 @@ func newExecSession(
) )
} }
func newExecSessionWithContext(
ctx context.Context,
cancel context.CancelFunc,
key execSessionKey,
command string,
exec sshExecRunner,
transport net.Conn,
registry *execSessionRegistry,
exitTTL time.Duration,
policy execSessionPolicy,
) *execSession {
return newExecSessionWithContextAndSpec(
ctx,
cancel,
key,
execSessionSpec{command: command},
command,
exec,
transport,
registry,
exitTTL,
policy,
)
}
func newExecSessionWithContextAndSpec( func newExecSessionWithContextAndSpec(
ctx context.Context, ctx context.Context,
cancel context.CancelFunc, cancel context.CancelFunc,