diff --git a/internal/controller/exec_sessions.go b/internal/controller/exec_sessions.go index a3d342f..13a6212 100644 --- a/internal/controller/exec_sessions.go +++ b/internal/controller/exec_sessions.go @@ -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( ctx context.Context, cancel context.CancelFunc,