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")
}
characters, count := filterCharacters(ctx, user, filter)
characters, count := filterCharacters(filter)
return ctx.HTML(components.CharacterEditorListFull(
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
// 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
characters := arn.FilterCharacters(func(character *arn.Character) bool {
if character.IsDraft {