MM-21254: Removing unnused/unnecesary getClientLicense etag (#13416)

Этот коммит содержится в:
Jesús Espino
2019-12-19 17:00:15 +01:00
коммит произвёл GitHub
родитель 3bccc03df3
Коммит fc9d49b2d2
3 изменённых файлов: 0 добавлений и 41 удалений

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

@@ -4,8 +4,6 @@
package app
import (
"crypto/md5"
"fmt"
"net/http"
"strings"
@@ -191,22 +189,6 @@ func (a *App) RemoveLicenseListener(id string) {
delete(a.Srv.licenseListeners, id)
}
func (a *App) GetClientLicenseEtag(useSanitized bool) string {
value := ""
lic := a.ClientLicense()
if useSanitized {
lic = a.GetSanitizedClientLicense()
}
for k, v := range lic {
value += fmt.Sprintf("%s:%s;", k, v)
}
return model.Etag(fmt.Sprintf("%x", md5.Sum([]byte(value))))
}
func (a *App) GetSanitizedClientLicense() map[string]string {
sanitizedLicense := make(map[string]string)