Removed unused parameters

This commit is contained in:
Eduard Urbach 2020-02-22 17:08:40 +09:00
parent 43c978ed8b
commit d01f718fde
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -18,7 +18,7 @@ func characterList(ctx aero.Context, title string, filter func(*arn.Character) b
return ctx.Error(http.StatusUnauthorized, "Not authorized") return ctx.Error(http.StatusUnauthorized, "Not authorized")
} }
characters, count := filterCharacters(ctx, user, filter) characters, count := filterCharacters(filter)
return ctx.HTML(components.CharacterEditorListFull( return ctx.HTML(components.CharacterEditorListFull(
title, title,
@ -31,7 +31,7 @@ func characterList(ctx aero.Context, title string, filter func(*arn.Character) b
// filterCharacters filters anime by the given filter function and // filterCharacters filters anime by the given filter function and
// additionally applies year and types filters if specified. // additionally applies year and types filters if specified.
func filterCharacters(ctx aero.Context, user *arn.User, filter func(*arn.Character) bool) ([]*arn.Character, int) { func filterCharacters(filter func(*arn.Character) bool) ([]*arn.Character, int) {
// Filter // Filter
characters := arn.FilterCharacters(func(character *arn.Character) bool { characters := arn.FilterCharacters(func(character *arn.Character) bool {
if character.IsDraft { if character.IsDraft {