Skip to content

Commit

Permalink
Delete already not used function
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki committed Dec 7, 2015
1 parent c963e6a commit b1bde55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions osutil/osutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 0 additions & 8 deletions osutil/osutil_stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b1bde55

Please sign in to comment.