1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #12534 from Mashimiao/delete-unused-function-from-drive

clenaup: delete unused function getEnv
This commit is contained in:
Alexander Morozov 2015-04-20 07:50:06 -07:00
commit d2ce1076a4
2 changed files with 0 additions and 21 deletions

View file

@ -141,13 +141,3 @@ func setupWorkingDirectory(args *InitArgs) error {
}
return nil
}
func getEnv(args *InitArgs, key string) string {
for _, kv := range args.Env {
parts := strings.SplitN(kv, "=", 2)
if parts[0] == key && len(parts) == 2 {
return parts[1]
}
}
return ""
}

View file

@ -8,7 +8,6 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
@ -349,16 +348,6 @@ func (d *driver) Stats(id string) (*execdriver.ResourceStats, error) {
}, nil
}
func getEnv(key string, env []string) string {
for _, pair := range env {
parts := strings.Split(pair, "=")
if parts[0] == key {
return parts[1]
}
}
return ""
}
type TtyConsole struct {
console libcontainer.Console
}