Removed the max/min family of functions (#28679)

They are in-built in Go now
```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2024-10-10 22:14:21 +05:30
коммит произвёл GitHub
родитель 4440ace6a9
Коммит 3db139f746
7 изменённых файлов: 5 добавлений и 40 удалений

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

@@ -1138,13 +1138,6 @@ func (a *App) getExplicitMentionsAndKeywords(c request.CTX, post *model.Post, ch
return mentions, keywords
}
func max(a, b int64) int64 {
if a < b {
return b
}
return a
}
func (a *App) userAllowsEmail(c request.CTX, user *model.User, channelMemberNotificationProps model.StringMap, post *model.Post) bool {
// if user is a bot account or remote, then we do not send email
if user.IsBot || user.IsRemote() {