overlay2: remove unused cdMountFrom() helper function

This function was added in 23e5c94cfb but never used

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2018-05-11 13:51:50 +02:00
parent f4ebcb42ac
commit 8a8ec00c1f
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 0 additions and 12 deletions

View File

@ -11,7 +11,6 @@ import (
"github.com/docker/docker/daemon/graphdriver/graphtest"
"github.com/docker/docker/pkg/archive"
"github.com/docker/docker/pkg/reexec"
"golang.org/x/sys/unix"
)
func init() {
@ -23,17 +22,6 @@ func init() {
reexec.Init()
}
func cdMountFrom(dir, device, target, mType, label string) error {
wd, err := os.Getwd()
if err != nil {
return err
}
os.Chdir(dir)
defer os.Chdir(wd)
return unix.Mount(device, target, mType, 0, label)
}
func skipIfNaive(t *testing.T) {
td, err := ioutil.TempDir("", "naive-check-")
if err != nil {