@@ -14,8 +14,6 @@ local hooksecurefunc = hooksecurefunc
1414
1515local CloseDropDownMenus = CloseDropDownMenus
1616local CreateFrame = CreateFrame
17- local GetCurrencyInfo = GetCurrencyInfo
18- local GetCurrencyListInfo = GetCurrencyListInfo
1917local GetNumSpecializations = GetNumSpecializations
2018local GetSpecializationInfo = GetSpecializationInfo
2119local InCombatLockdown = InCombatLockdown
@@ -32,14 +30,14 @@ local C_CurrencyInfo_GetCurrencyListInfo = C_CurrencyInfo.GetCurrencyListInfo
3230local C_CurrencyInfo_GetCurrencyListLink = C_CurrencyInfo .GetCurrencyListLink
3331local GetBackpackCurrencyInfo = GetBackpackCurrencyInfo or C_CurrencyInfo .GetBackpackCurrencyInfo
3432local GetCurrencyListSize = GetCurrencyListSize or C_CurrencyInfo .GetCurrencyListSize
35-
3633local C_PartyInfo_RequestInviteFromUnit = C_PartyInfo .RequestInviteFromUnit
37- local BNInviteFriend = BNInviteFriend
38- local BNRequestInviteFriend = BNRequestInviteFriend
3934local InviteUnit = C_PartyInfo .InviteUnit
35+
4036local GetDisplayedInviteType = GetDisplayedInviteType
41- local SetItemRef = SetItemRef
4237local ChatFrame_SendBNetTell = ChatFrame_SendBNetTell
38+ local BNRequestInviteFriend = BNRequestInviteFriend
39+ local BNInviteFriend = BNInviteFriend
40+ local SetItemRef = SetItemRef
4341
4442local MISCELLANEOUS = MISCELLANEOUS
4543local LFG_TYPE_DUNGEON = LFG_TYPE_DUNGEON
@@ -859,31 +857,17 @@ function DT:CURRENCY_DISPLAY_UPDATE(_, currencyID)
859857end
860858
861859function 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 {}
869861end
870862
871863function 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 {}
877865
878866 return info , info and info .name , format (iconString , info and info .iconFileID or ' 136012' )
879867end
880868
881869function 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 {}
887871
888872 return info , info and info .name
889873end
0 commit comments