pkg/system: remove deprecated EscapeArgs

It was deprecated in 63bada41e5, but won't
be carried to the new modules.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-07-28 23:54:06 +02:00
parent 8c7365e1ff
commit 53a3085256

View File

@@ -1,18 +0,0 @@
package system
import (
"strings"
"golang.org/x/sys/windows"
)
// EscapeArgs makes a Windows-style escaped command line from a set of arguments
//
// Deprecated: this function is no longer used and will be removed in the next release.
func EscapeArgs(args []string) string {
escapedArgs := make([]string, len(args))
for i, a := range args {
escapedArgs[i] = windows.EscapeArg(a)
}
return strings.Join(escapedArgs, " ")
}