From dbd0c3349f7aab94563f9d6950e558ea547911f8 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 3 May 2024 12:12:46 -0700 Subject: [PATCH] libct/system: rm Execv This is not used since commit dac41717. Signed-off-by: Kir Kolyshkin --- libcontainer/system/linux.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libcontainer/system/linux.go b/libcontainer/system/linux.go index 0b3b4da33..368364baf 100644 --- a/libcontainer/system/linux.go +++ b/libcontainer/system/linux.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "os" - "os/exec" "strconv" "syscall" "unsafe" @@ -36,14 +35,6 @@ func (p ParentDeathSignal) Set() error { return SetParentDeathSignal(uintptr(p)) } -func Execv(cmd string, args []string, env []string) error { - name, err := exec.LookPath(cmd) - if err != nil { - return err - } - return Exec(name, args, env) -} - func Exec(cmd string, args []string, env []string) error { for { err := unix.Exec(cmd, args, env)