Skip to content

Commit fca0497

Browse files
committed
Remove useless function in trade helpers
1 parent d795c9f commit fca0497

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/Classes/TradeHelpers.lua

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ end
339339
-- categoryLabel: e.g. "Shield", "1HMace", "1HWeapon" (nil for flask / generic jewel / unsupported)
340340
--- @param slotName string
341341
--- @param item table
342-
function M.getTradeCategoryInfo(slotName, item)
342+
function M.getTradeCategory(slotName, item)
343343
if not slotName then return nil, nil end
344344
local itemType = item and (item.type or (item.base and item.base.type))
345345
if slotName:find("^Weapon %d") then
@@ -376,13 +376,6 @@ function M.getTradeCategoryInfo(slotName, item)
376376
end
377377
end
378378

379-
-- Helper: map slot name + item type to trade API category string
380-
--- @param item table
381-
function M.getTradeCategory(slotName, item)
382-
if not item or not item.base then return nil end
383-
local queryStr = M.getTradeCategoryInfo(slotName, item)
384-
return queryStr
385-
end
386379

387380
-- Helper: get a display-friendly category name from slot name
388381
--- @param item table

src/Classes/TradeQueryGenerator.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ function TradeQueryGeneratorClass:StartQuery(slot, options)
741741
itemCategoryQueryStr = "jewel"
742742
end
743743
else
744-
itemCategoryQueryStr, itemCategory = tradeHelpers.getTradeCategoryInfo(slot.slotName, existingItem)
744+
itemCategoryQueryStr, itemCategory = tradeHelpers.getTradeCategory(slot.slotName, existingItem)
745745

746746
-- Generic Jewel slot: caller selects the jewel subtype.
747747
if slot.slotName:find("Jewel") ~= nil and not slot.slotName:find("Abyssal") then

0 commit comments

Comments
 (0)