From 98eac61e89efd22709575db09124d4311aabdda0 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Mon, 4 May 2026 16:18:50 -0400 Subject: [PATCH] Remove unused exec session helper --- internal/controller/exec_sessions.go | 25 ------------------------- 1 file changed, 25 deletions(-) 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,