diff options
author | Lars K.W. Gohlke <lkwg82@gmx.de> | 2016-05-11 06:21:30 +0000 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-05-11 06:21:30 +0000 |
commit | d628b731d1f7287905a613e903002d27f6635001 (patch) | |
tree | 4476c0b4fe386d368518fd338eadbde24ce9b0df | |
parent | 21e116aa45a3c09953a51ba2a4aead1be7360ed0 (diff) |
build: Remove unused code
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3079
-rw-r--r-- | build.go | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -674,13 +674,6 @@ func buildHost() string { return h } -func buildEnvironment() string { - if v := os.Getenv("ENVIRONMENT"); len(v) > 0 { - return v - } - return "default" -} - func buildArch() string { os := goos if os == "darwin" { @@ -693,16 +686,6 @@ func archiveName(target target) string { return fmt.Sprintf("%s-%s-%s", target.name, buildArch(), version) } -func run(cmd string, args ...string) []byte { - bs, err := runError(cmd, args...) - if err != nil { - log.Println(cmd, strings.Join(args, " ")) - log.Println(string(bs)) - log.Fatal(err) - } - return bytes.TrimSpace(bs) -} - func runError(cmd string, args ...string) ([]byte, error) { ecmd := exec.Command(cmd, args...) bs, err := ecmd.CombinedOutput() |