Skip to content

Commit

Permalink
Removed unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomad-software committed Aug 4, 2020
1 parent bb65bee commit 171b4dc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cli/cmd.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package cli

import (
"io/ioutil"
"os"
"os/exec"
"path/filepath"

"github.com/nomad-software/vend/output"
)
Expand Down Expand Up @@ -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)
}

0 comments on commit 171b4dc

Please sign in to comment.