@@ -14,8 +14,6 @@ local hooksecurefunc = hooksecurefunc
14
14
15
15
local CloseDropDownMenus = CloseDropDownMenus
16
16
local CreateFrame = CreateFrame
17
- local GetCurrencyInfo = GetCurrencyInfo
18
- local GetCurrencyListInfo = GetCurrencyListInfo
19
17
local GetNumSpecializations = GetNumSpecializations
20
18
local GetSpecializationInfo = GetSpecializationInfo
21
19
local InCombatLockdown = InCombatLockdown
@@ -32,14 +30,14 @@ local C_CurrencyInfo_GetCurrencyListInfo = C_CurrencyInfo.GetCurrencyListInfo
32
30
local C_CurrencyInfo_GetCurrencyListLink = C_CurrencyInfo .GetCurrencyListLink
33
31
local GetBackpackCurrencyInfo = GetBackpackCurrencyInfo or C_CurrencyInfo .GetBackpackCurrencyInfo
34
32
local GetCurrencyListSize = GetCurrencyListSize or C_CurrencyInfo .GetCurrencyListSize
35
-
36
33
local C_PartyInfo_RequestInviteFromUnit = C_PartyInfo .RequestInviteFromUnit
37
- local BNInviteFriend = BNInviteFriend
38
- local BNRequestInviteFriend = BNRequestInviteFriend
39
34
local InviteUnit = C_PartyInfo .InviteUnit
35
+
40
36
local GetDisplayedInviteType = GetDisplayedInviteType
41
- local SetItemRef = SetItemRef
42
37
local ChatFrame_SendBNetTell = ChatFrame_SendBNetTell
38
+ local BNRequestInviteFriend = BNRequestInviteFriend
39
+ local BNInviteFriend = BNInviteFriend
40
+ local SetItemRef = SetItemRef
43
41
44
42
local MISCELLANEOUS = MISCELLANEOUS
45
43
local LFG_TYPE_DUNGEON = LFG_TYPE_DUNGEON
@@ -859,31 +857,17 @@ function DT:CURRENCY_DISPLAY_UPDATE(_, currencyID)
859
857
end
860
858
861
859
function DT :CurrencyListInfo (index )
862
- local info = E .Retail and C_CurrencyInfo_GetCurrencyListInfo (index ) or {}
863
-
864
- if E .Cata then
865
- info .name , info .isHeader , info .isHeaderExpanded , info .isUnused , info .isWatched , info .quantity , info .iconFileID , info .maxQuantity , info .weeklyMax , info .earnedThisWeek , info .isTradeable , info .itemID = GetCurrencyListInfo (index )
866
- end
867
-
868
- return info
860
+ return C_CurrencyInfo_GetCurrencyListInfo (index ) or {}
869
861
end
870
862
871
863
function DT :CurrencyInfo (id )
872
- local info = E .Retail and C_CurrencyInfo_GetCurrencyInfo (id ) or {}
873
-
874
- if E .Cata then
875
- info .name , info .quantity , info .iconFileID , info .earnedThisWeek , info .weeklyMax , info .maxQuantity , info .isDiscovered = GetCurrencyInfo (id )
876
- end
864
+ local info = C_CurrencyInfo_GetCurrencyInfo (id ) or {}
877
865
878
866
return info , info and info .name , format (iconString , info and info .iconFileID or ' 136012' )
879
867
end
880
868
881
869
function DT :BackpackCurrencyInfo (index )
882
- local info = E .Retail and GetBackpackCurrencyInfo (index ) or {}
883
-
884
- if E .Cata then
885
- info .name , info .quantity , info .iconFileID , info .currencyTypesID = GetBackpackCurrencyInfo (index )
886
- end
870
+ local info = GetBackpackCurrencyInfo (index ) or {}
887
871
888
872
return info , info and info .name
889
873
end
0 commit comments