Skip to content

Commit

Permalink
Remove Usage Of Deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed May 21, 2024
1 parent 73e34e1 commit 18d52d5
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/filters/EquipLocation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local AddOn = _G[AddOnName]

-- WoW API
local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink
local GetItemInfoInstant = _G.GetItemInfoInstant
local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant

-- Libs
local LibStub = _G.LibStub
Expand Down
2 changes: 1 addition & 1 deletion src/filters/EquipmentSlot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName]

-- WoW API
local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID
local GetItemInfoInstant = _G.GetItemInfoInstant
local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant

-- Libs
local LibStub = _G.LibStub
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ItemBind.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName]
--local BankButtonIDToInvSlotID = _G.BankButtonIDToInvSlotID
local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink
local GetContainerItemInfo = _G.C_Container and _G.C_Container.GetContainerItemInfo or _G.GetContainerItemInfo
local GetItemInfo = _G.GetItemInfo
local GetItemInfo = _G.C_Item.GetItemInfo
local DoesItemExist = _G.C_Item and _G.C_Item.DoesItemExist
local C_ItemIsBound = _G.C_Item and _G.C_Item.IsBound
local ItemLocation = _G.ItemLocation
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ItemID.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local tonumber = _G.tonumber
local wipe = _G.wipe

-- WoW API
local GetItemInfo = _G.GetItemInfo
local GetItemInfo = _G.C_Item.GetItemInfo
local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID

-- Libs
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ItemLevel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local AddOn = _G[AddOnName]

-- WoW API
local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink
local GetItemInfo = _G.GetItemInfo
local GetItemInfo = _G.C_Item.GetItemInfo
local UnitLevel = _G.UnitLevel

-- Libs
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ItemName.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName]

--- WoW API
local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink
local GetItemInfo = _G.GetItemInfo
local GetItemInfo = _G.C_Item.GetItemInfo

-- Libs
local LibStub = _G.LibStub
Expand Down
6 changes: 3 additions & 3 deletions src/filters/ItemType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ local tostring = _G.tostring
local tonumber = _G.tonumber

-- WoW API
local GetItemClassInfo = _G.GetItemClassInfo
local GetItemSubClassInfo = _G.GetItemSubClassInfo
local GetItemClassInfo = _G.C_Item.GetItemClassInfo
local GetItemSubClassInfo = _G.C_Item.GetItemSubClassInfo
local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID
local GetItemInfoInstant = _G.GetItemInfoInstant
local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant

local GetAuctionItemSubClasses
if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() or AddOn:IsCataWow() then
Expand Down
2 changes: 1 addition & 1 deletion src/filters/Quality.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local pairs = _G.pairs

-- WoW API
local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink
local GetItemInfo = _G.GetItemInfo
local GetItemInfo = _G.C_Item.GetItemInfo

-- Libs
local LibStub = _G.LibStub
Expand Down
2 changes: 1 addition & 1 deletion src/filters/ScrapAddon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local REAGENTBANK_CONTAINER = _G.REAGENTBANK_CONTAINER
local LibStub = _G.LibStub
local L = LibStub("AceLocale-3.0"):GetLocale(AddOnName)

if not (IsAddOnLoaded("Scrap") or ( IsAddOnLoadable and IsAddOnLoadable("Scrap")) or ( GetAddOnInfo and select(4,GetAddOnInfo("Scrap"))) ) then
if not (IsAddOnLoaded("Scrap") or ( IsAddOnLoadable and IsAddOnLoadable("Scrap")) or ( C_AddOns.GetAddOnInfo and select(4,C_AddOns.GetAddOnInfo("Scrap"))) ) then
return
end

Expand Down

0 comments on commit 18d52d5

Please sign in to comment.