From 6dc68bdda3fc8bfb75c96704e77711cbb13e7948 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Tue, 24 Jul 2018 12:48:07 +0200 Subject: [PATCH] internal: remove VERSION() method which reads VERSION file --- internal/build/util.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/build/util.go b/internal/build/util.go index dc4b9a7702..f99ee8396d 100644 --- a/internal/build/util.go +++ b/internal/build/util.go @@ -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.