From 5c534da875522beb6bbfc9f6690c401bd671e27c Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 5 Jan 2025 01:36:05 +0400 Subject: [PATCH] Removing unused last index in category resolving (oops) --- src/lib/extension/CustomCategoriesResolver.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lib/extension/CustomCategoriesResolver.ts b/src/lib/extension/CustomCategoriesResolver.ts index 6021939..d8fc259 100644 --- a/src/lib/extension/CustomCategoriesResolver.ts +++ b/src/lib/extension/CustomCategoriesResolver.ts @@ -6,7 +6,6 @@ export default class CustomCategoriesResolver { #tagCategories = new Map(); #compiledRegExps = new Map(); #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;