diff options
| author | chrislu <chris.lu@gmail.com> | 2022-02-27 03:03:19 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-02-27 03:03:19 -0800 |
| commit | c3792c8352d72b9dac5e6032e9b0710e032e18d2 (patch) | |
| tree | 44f87f7fb040217ba3dba8c00db1b6191a60fcc6 /weed/command | |
| parent | aa9eef81e61f29e1801b2e23a6d8db8a4836cb9c (diff) | |
| download | seaweedfs-c3792c8352d72b9dac5e6032e9b0710e032e18d2.tar.xz seaweedfs-c3792c8352d72b9dac5e6032e9b0710e032e18d2.zip | |
remove dead code
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/mount.go (renamed from weed/command/mount2.go) | 0 | ||||
| -rw-r--r-- | weed/command/mount_darwin.go | 8 | ||||
| -rw-r--r-- | weed/command/mount_linux.go | 6 | ||||
| -rw-r--r-- | weed/command/mount_notsupported.go (renamed from weed/command/mount2_notsupported.go) | 2 | ||||
| -rw-r--r-- | weed/command/mount_std.go (renamed from weed/command/mount2_std.go) | 0 |
5 files changed, 1 insertions, 15 deletions
diff --git a/weed/command/mount2.go b/weed/command/mount.go index 545ba8a43..545ba8a43 100644 --- a/weed/command/mount2.go +++ b/weed/command/mount.go diff --git a/weed/command/mount_darwin.go b/weed/command/mount_darwin.go index f0a5581e7..05d6a1bc4 100644 --- a/weed/command/mount_darwin.go +++ b/weed/command/mount_darwin.go @@ -1,13 +1,5 @@ package command -import ( - "github.com/seaweedfs/fuse" -) - -func osSpecificMountOptions() []fuse.MountOption { - return []fuse.MountOption{} -} - func checkMountPointAvailable(dir string) bool { return true } diff --git a/weed/command/mount_linux.go b/weed/command/mount_linux.go index 25c4f72cf..aebb14e61 100644 --- a/weed/command/mount_linux.go +++ b/weed/command/mount_linux.go @@ -6,8 +6,6 @@ import ( "io" "os" "strings" - - "github.com/seaweedfs/fuse" ) const ( @@ -137,10 +135,6 @@ func parseInfoFile(r io.Reader) ([]*Info, error) { return out, nil } -func osSpecificMountOptions() []fuse.MountOption { - return []fuse.MountOption{} -} - func checkMountPointAvailable(dir string) bool { mountPoint := dir if mountPoint != "/" && strings.HasSuffix(mountPoint, "/") { diff --git a/weed/command/mount2_notsupported.go b/weed/command/mount_notsupported.go index 075b73436..894c8e313 100644 --- a/weed/command/mount2_notsupported.go +++ b/weed/command/mount_notsupported.go @@ -8,7 +8,7 @@ import ( "runtime" ) -func runMount2(cmd *Command, args []string) bool { +func runMount(cmd *Command, args []string) bool { fmt.Printf("Mount is not supported on %s %s\n", runtime.GOOS, runtime.GOARCH) return true diff --git a/weed/command/mount2_std.go b/weed/command/mount_std.go index e53f9831e..e53f9831e 100644 --- a/weed/command/mount2_std.go +++ b/weed/command/mount_std.go |
