From 8d86389a032871764eaa9c392d1a1fda57a52ec7 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 30 Jul 2026 20:28:39 -0500 Subject: [PATCH] Remove dead IndexEquippedItems (no callers) --- Extensions/Tooltip/Generic.lua | 39 ---------------------------------- 1 file changed, 39 deletions(-) diff --git a/Extensions/Tooltip/Generic.lua b/Extensions/Tooltip/Generic.lua index e1b1b9a..664f843 100644 --- a/Extensions/Tooltip/Generic.lua +++ b/Extensions/Tooltip/Generic.lua @@ -156,45 +156,6 @@ end -- Lightweight equipment-only indexing for combat situations -- Updates existing cache rather than rebuilding it -function CleveRoids.IndexEquippedItems() - local items = CleveRoids.Items or {} - - for inventoryID = 1, 19 do - local itemID = GetInventoryItemID("player", inventoryID) - if itemID then - local name, link, _, _, itemType, itemSubType, _, _, texture = GetItemInfo(itemID) - if name then - local count = GetInventoryItemCount("player", inventoryID) - if not items[name] then - items[name] = { - inventoryID = inventoryID, - id = itemID, - name = name, - count = count, - texture = texture, - link = link, - } - items[itemID] = name - local lowerName = string.lower(name) - if lowerName ~= name then - items[lowerName] = name - end - else - -- Update existing entry with current equipment state - items[name].inventoryID = inventoryID - items[name].count = count - end - end - else - -- Slot is now empty - clear inventoryID from any item that was there - -- This is handled lazily by GetItem() fallback, so we skip expensive iteration - end - end - - CleveRoids.lastGetItem = nil - CleveRoids.Items = items -end - -- PERFORMANCE: Index a single equipment slot instead of all 20 -- Use when we know exactly which slot changed (e.g., from EquipBagItem or -- PLAYER_EQUIPMENT_CHANGED). hasCurrent is the event's arg2 (does the slot now