From aa8359a0f6af446335edad36ea18d6d0b940cc95 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sat, 14 Mar 2020 11:23:41 -0700 Subject: [PATCH] mount: rm ForceMount Since this is a new library, we are free to remove the deprecated functions. Fortunately, there's only one. Signed-off-by: Kir Kolyshkin --- mount/mount.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mount/mount.go b/mount/mount.go index 25d1b916..e28bd5e8 100644 --- a/mount/mount.go +++ b/mount/mount.go @@ -59,16 +59,6 @@ func Mount(device, target, mType, options string) error { return mount(device, target, mType, uintptr(flag), data) } -// ForceMount will mount filesystem according to the specified configuration. -// Options must be specified like the mount or fstab unix commands: -// "opt1=val1,opt2=val2". See flags.go for supported option flags. -// -// Deprecated: use Mount instead. -func ForceMount(device, target, mType, options string) error { - flag, data := parseOptions(options) - return mount(device, target, mType, uintptr(flag), data) -} - // Unmount lazily unmounts a filesystem on supported platforms, otherwise // does a normal unmount. func Unmount(target string) error {