Skip to content

Commit f24d15f

Browse files
committed
Remove dead code
1 parent 7d4794b commit f24d15f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

trayicon.go

-18
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,6 @@ func getConfigs() []ConfigIni {
9999
return configs
100100
}
101101

102-
func applyEnvironment(filename string) {
103-
src, _ := osext.Executable()
104-
dest := filepath.Dir(src)
105-
cfg, _ := ini.LoadSources(ini.LoadOptions{IgnoreInlineComment: true}, filepath.Join(dest, filename))
106-
defaultSection, err := cfg.GetSection("env")
107-
if err != nil {
108-
return
109-
}
110-
for _, env := range defaultSection.KeyStrings() {
111-
val := defaultSection.Key(env).String()
112-
log.Info("Applying env setting: " + env + "=" + val)
113-
os.Setenv(env, val)
114-
}
115-
}
116-
117102
func setupSysTrayReal() {
118103

119104
systray.SetIcon(icon.GetIcon())
@@ -136,9 +121,6 @@ func setupSysTrayReal() {
136121
}
137122
entry.SetTitle(gliph + config.Name)
138123
}
139-
} else {
140-
// apply env setting from first config immediately
141-
// applyEnvironment(configs[0].Localtion)
142124
}
143125
//mQuit := systray.AddMenuItem("Quit Plugin", "")
144126

0 commit comments

Comments
 (0)