internal: remove VERSION() method which reads VERSION file

This commit is contained in:
Anton Evangelatov 2018-07-24 12:48:07 +02:00
parent 5fe26ab36a
commit 6dc68bdda3

View file

@ -60,15 +60,6 @@ func GOPATH() string {
return os.Getenv("GOPATH")
}
// VERSION returns the content of a VERSION file.
func VERSION(path string) string {
version, err := ioutil.ReadFile(path)
if err != nil {
log.Fatal(err)
}
return string(bytes.TrimSpace(version))
}
var warnedAboutGit bool
// RunGit runs a git subcommand and returns its output.