From b1bde559afb78a354dadc78902e0905c89a5af9e Mon Sep 17 00:00:00 2001 From: y_uuki Date: Tue, 8 Dec 2015 04:11:43 +0900 Subject: [PATCH] Delete already not used function --- osutil/osutil.go | 8 -------- osutil/osutil_stubs.go | 8 -------- 2 files changed, 16 deletions(-) diff --git a/osutil/osutil.go b/osutil/osutil.go index 1757883..754c9ff 100644 --- a/osutil/osutil.go +++ b/osutil/osutil.go @@ -92,14 +92,6 @@ func UmountRoot(rootDir string) error { return nil } -func BindMount(src, dest string) error { - return mount.Mount(src, dest, "bind", "") -} - -func RObindMount(src, dest string) error { - return mount.Mount(src, dest, "bind", "remount,ro,bind") -} - // Mknod unless path does not exists. func Mknod(path string, mode uint32, dev int) error { if ExistsFile(path) { diff --git a/osutil/osutil_stubs.go b/osutil/osutil_stubs.go index 55ca8cf..2169c60 100644 --- a/osutil/osutil_stubs.go +++ b/osutil/osutil_stubs.go @@ -7,14 +7,6 @@ import ( "runtime" ) -func GetMountsByRoot(rootDir string) ([]string, error) { - return nil, fmt.Errorf("osutil: GetMountsByRoot not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - -func UmountRoot(rootDir string) (err error) { - return fmt.Errorf("osutil: UmountRoot not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - func LookupGroup(id string) (int, error) { return -1, fmt.Errorf("osutil: LookupGroup not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) }