Procházet zdrojové kódy

chore: cleanup executor.go

jamesread před 7 měsíci
rodič
revize
d1ec688c9a
2 změnil soubory, kde provedl 0 přidání a 14 odebrání
  1. 0 12
      lang/main.go
  2. 0 2
      service/internal/executor/executor.go

+ 0 - 12
lang/main.go

@@ -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
-}

+ 0 - 2
service/internal/executor/executor.go

@@ -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()