chore: cleanup executor.go

This commit is contained in:
jamesread 2025-11-16 00:47:03 +00:00
parent c1508a0a65
commit d1ec688c9a
2 changed files with 0 additions and 14 deletions

View File

@ -213,15 +213,3 @@ func filterLanguageFiles(files []os.DirEntry) []os.DirEntry {
return ret
}
func parseAcceptLanguages(headerLanguage string) []string {
acceptLanguages := make([]string, 0)
for _, lang := range strings.Split(headerLanguage, ",") {
lang = strings.TrimSpace(lang)
acceptLanguages = append(acceptLanguages, lang)
}
return acceptLanguages
}

View File

@ -234,8 +234,6 @@ func isLogEntryAllowedByACL(cfg *config.Config, user *acl.AuthenticatedUser, ent
return acl.IsAllowedLogs(cfg, user, entry.Binding.Action)
}
// filterLogsByACL builds a filtered list of logs in reverse-chronological order
// that are visible to the user based on ACL rules.
func (e *Executor) filterLogsByACL(cfg *config.Config, user *acl.AuthenticatedUser) []*InternalLogEntry {
e.logmutex.RLock()
defer e.logmutex.RUnlock()