diff --git a/init.go b/init.go index 4c8950e..40b2c37 100644 --- a/init.go +++ b/init.go @@ -106,7 +106,6 @@ func (f *Forge) setenv() { os.Exit(-1) } // f.configDir = os.Getenv("FORGE_CONFIG") - // f.goSrc = os.Getenv("FORGE_GOSRC") // f.forgeURL = os.Getenv("FORGE_URL") f.hostname = os.Getenv("HOSTNAME") if os.Getenv("FORGE_GOWORK") == "true" { @@ -119,31 +118,6 @@ func (f *Forge) setenv() { }) } -/* -// if the env vars are set, this is probably not a new user -func checkenv() bool { - if os.Getenv("FORGE_CONFIG") != "" { - return true - } - if os.Getenv("FORGE_GOSRC") != "" { - return true - } - if os.Getenv("FORGE_REPOPB") != "" { - return true - } - if os.Getenv("FORGE_URL") != "" { - return true - } - if os.Getenv("FORGE_PATCHDIR") != "" { - return true - } - if os.Getenv("FORGE_VERBOSE") != "" { - return true - } - return false -} -*/ - func (f *Forge) GetForgeURL() string { return f.Config.ForgeURL } @@ -189,11 +163,7 @@ func (f *Forge) configENV() bool { changed = true } - // f.configDir = os.Getenv("FORGE_CONFIG") - // f.goSrc = os.Getenv("FORGE_GOSRC") - // f.forgeURL = os.Getenv("FORGE_URL") f.Config.ForgeURL = os.Getenv("FORGE_URL") - // f.patchDir = os.Getenv("FORGE_PATCHDIR") f.hostname = os.Getenv("HOSTNAME") if os.Getenv("FORGE_GOWORK") == "true" { f.goWork = true