From ce74d6f14ae89cdd54cf0ace70e63357f8ce6432 Mon Sep 17 00:00:00 2001 From: Gregory Kurtzer Date: Sun, 27 Feb 2022 18:59:16 -0800 Subject: [PATCH] Fix lint error with unused function --- internal/pkg/configure/nfs.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/internal/pkg/configure/nfs.go b/internal/pkg/configure/nfs.go index 53159249..751abbf7 100644 --- a/internal/pkg/configure/nfs.go +++ b/internal/pkg/configure/nfs.go @@ -47,21 +47,3 @@ func NFS() error { return nil } - -/* -Prints the configured nfs exports in formated style, needs not to be -the content of '/etc/exports' -*/ -func showNFS() { - controller, err := warewulfconf.New() - if err != nil { - wwlog.Printf(wwlog.ERROR, "%s\n", err) - os.Exit(1) - } - - fmt.Printf("/etc/exports:\n") - for _, export := range controller.Nfs.ExportsExtended { - fmt.Printf("%s %s/%s\n", export.Path, controller.Network, controller.Netmask) - } - fmt.Printf("\n") -}