1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-23 23:02:58 +00:00

Removing unused last index in category resolving (oops)

This commit is contained in:
2025-01-05 01:36:05 +04:00
parent 257c369b02
commit 5c534da875

View File

@@ -6,7 +6,6 @@ export default class CustomCategoriesResolver {
#tagCategories = new Map<string, string>();
#compiledRegExps = new Map<RegExp, string>();
#tagDropdowns: TagDropdownWrapper[] = [];
#lastProcessedIndex = -1;
#nextQueuedUpdate = -1;
constructor() {
@@ -34,10 +33,7 @@ export default class CustomCategoriesResolver {
}
#updateUnprocessedTags() {
const startIndex = Math.max(0, this.#lastProcessedIndex);
this.#tagDropdowns
.slice(startIndex)
.filter(CustomCategoriesResolver.#skipTagsWithOriginalCategory)
.filter(this.#applyCustomCategoryForExactMatches.bind(this))
.filter(this.#matchCustomCategoryByRegExp.bind(this))
@@ -79,7 +75,6 @@ export default class CustomCategoriesResolver {
#onTagGroupsReceived(tagGroups: TagGroup[]) {
this.#tagCategories.clear();
this.#compiledRegExps.clear();
this.#lastProcessedIndex = -1;
if (!tagGroups.length) {
return;