summaryrefslogtreecommitdiff
path: root/mkvlib/utils.go
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2021-10-22 16:40:26 +0800
committerb5f0d6c3 <[email protected]>2021-10-22 16:40:26 +0800
commitf57e4a26bc4f712eadc202afa27be24c3454f430 (patch)
treec706e2c5a397c10e51d1231ed40485564af5cf1c /mkvlib/utils.go
parentd4cc474ed76f8428685d6be7215bda61f8a1cf78 (diff)
update mkvlib:process hide window for windows os
Diffstat (limited to 'mkvlib/utils.go')
-rw-r--r--mkvlib/utils.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/mkvlib/utils.go b/mkvlib/utils.go
index a76a05d..461194b 100644
--- a/mkvlib/utils.go
+++ b/mkvlib/utils.go
@@ -6,7 +6,6 @@ import (
"io"
"math/rand"
"os"
- "os/exec"
"path"
"path/filepath"
"regexp"
@@ -14,27 +13,6 @@ import (
"time"
)
-func newProcess(stdin io.Reader, stdout, stderr io.Writer, dir, prog string, args ...string) (p *os.Process, err error) {
- cmd := exec.Command(prog, args...)
- if dir != "" {
- cmd.Dir = dir
- }
- if stdin != nil {
- cmd.Stdin = stdin
- }
- if stdout != nil {
- cmd.Stdout = stdout
- }
- if stderr != nil {
- cmd.Stderr = stderr
- }
- err = cmd.Start()
- if err == nil {
- p = cmd.Process
- }
- return
-}
-
func newDir(path string) error {
return os.MkdirAll(path, os.ModePerm)
}