Removed unnecessary function.

This commit is contained in:
Patrick Connolly
2018-11-09 11:12:03 +08:00
parent 6880d0f188
commit 572691d9ba
2 changed files with 1 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ func (b *Api) handleConfigReload(c echo.Context) error {
b.Log.Error("Error reading remote config file: ", err)
return c.String(http.StatusInternalServerError, "Internal Server Error")
}
cfgfile := b.ConfigFileUsed()
cfgfile := b.Config.ConfigFileUsed()
err = ioutil.WriteFile(cfgfile, content, 0644)
if err != nil {
b.Log.Error("Failed to write remote config file: ", err)

View File

@@ -68,10 +68,6 @@ func (b *Bridge) joinChannels(channels map[string]config.ChannelInfo, exists map
return nil
}
func (b *Bridge) ConfigFileUsed() string {
return b.Config.ConfigFileUsed()
}
func (b *Bridge) GetBool(key string) bool {
if b.Config.GetBool(b.Account + "." + key) {
return b.Config.GetBool(b.Account + "." + key)