Remove utils.ClientCfg and utils.ClientCfgHash (#8041)

* remove utils.ClientCfg and utils.ClientCfgHash

* remove unused import
Этот коммит содержится в:
Chris
2018-01-05 16:17:57 -06:00
коммит произвёл GitHub
родитель fd3fa8f8dc
Коммит 591ef9f352
17 изменённых файлов: 146 добавлений и 104 удалений

Просмотреть файл

@@ -9,7 +9,6 @@ import (
"strings"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func (api *API) InitGeneral() {
@@ -19,7 +18,7 @@ func (api *API) InitGeneral() {
}
func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) {
w.Write([]byte(model.MapToJson(utils.ClientCfg)))
w.Write([]byte(model.MapToJson(c.App.ClientConfig())))
}
func logClient(c *Context, w http.ResponseWriter, r *http.Request) {