From 5dd961c0f56f941d30a31b86268644fc3bb8c6df Mon Sep 17 00:00:00 2001 From: bergquist Date: Fri, 10 Feb 2017 07:39:26 +0100 Subject: [PATCH] settings: remove commented code --- pkg/setting/setting.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index 9c2ba6ee13c..a5f46170db5 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -455,22 +455,6 @@ func validateStaticRootPath() error { return fmt.Errorf("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?", StaticRootPath) } -// func readInstanceName() string { -// hostname, _ := os.Hostname() -// if hostname == "" { -// hostname = "hostname_unknown" -// } -// -// instanceName := Cfg.Section("").Key("instance_name").MustString("") -// if instanceName = "" { -// // set value as it might be used in other places -// Cfg.Section("").Key("instance_name").SetValue(hostname) -// instanceName = hostname -// } -// -// return -// } - func NewConfigContext(args *CommandLineArgs) error { setHomePath(args) loadConfiguration(args)