From 171b4dc0f73d182b37ebd5ad4ecfeeb48bb9a510 Mon Sep 17 00:00:00 2001 From: Gary Willoughby Date: Tue, 4 Aug 2020 18:45:44 +0100 Subject: [PATCH] Removed unused function. --- cli/cmd.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cli/cmd.go b/cli/cmd.go index c766559..7cc428f 100644 --- a/cli/cmd.go +++ b/cli/cmd.go @@ -1,10 +1,8 @@ package cli import ( - "io/ioutil" "os" "os/exec" - "path/filepath" "github.com/nomad-software/vend/output" ) @@ -58,11 +56,3 @@ func buildEnv() []string { env = append(env, "GO111MODULE=on") return env } - -// ReadModFile runs a builtin go command to generate an officially formatted report file. -func ReadModFile(vendorDir string) string { - bytes, err := ioutil.ReadFile(filepath.Join(vendorDir, "modules.txt")) - output.OnError(err, "Error reading modules.txt") - - return string(bytes) -}