@@ -2,16 +2,13 @@ local E, L, V, P, G = unpack(ElvUI)
22local AB = E :GetModule (' ActionBars' )
33local UF = E :GetModule (' UnitFrames' )
44local M = E :GetModule (' Misc' )
5- local B = E :GetModule (' Bags' )
65local S = E :GetModule (' Skins' )
76
87local _G = _G
9- local pairs , type , unpack , assert = pairs , type , unpack , assert
10- local tremove , tContains , tinsert , wipe = tremove , tContains , tinsert , wipe
11- local format , error , ipairs , ceil = format , error , ipairs , ceil
8+ local pairs , type , unpack , assert , ceil = pairs , type , unpack , assert , ceil
9+ local tremove , tContains , tinsert , wipe , error = tremove , tContains , tinsert , wipe , error
1210
1311local CreateFrame = CreateFrame
14- local DeleteCursorItem = DeleteCursorItem
1512local MoneyFrame_Update = MoneyFrame_Update
1613local UnitIsDeadOrGhost , InCinematic = UnitIsDeadOrGhost , InCinematic
1714local PurchaseSlot , GetBankSlotCost = PurchaseSlot , GetBankSlotCost
@@ -26,7 +23,6 @@ local ChatEdit_FocusActiveWindow = ChatEdit_FocusActiveWindow
2623local DisableAddOn = (C_AddOns and C_AddOns .DisableAddOn ) or DisableAddOn
2724local EnableAddOn = (C_AddOns and C_AddOns .EnableAddOn ) or EnableAddOn
2825local IsAddOnLoaded = (C_AddOns and C_AddOns .IsAddOnLoaded ) or IsAddOnLoaded
29- local PickupContainerItem = (C_Container and C_Container .PickupContainerItem ) or PickupContainerItem
3026
3127local STATICPOPUP_TEXTURE_ALERT = STATICPOPUP_TEXTURE_ALERT
3228local STATICPOPUP_TEXTURE_ALERTGEAR = STATICPOPUP_TEXTURE_ALERTGEAR
@@ -269,29 +265,6 @@ E.PopupDialogs.RESET_NP_AF = {
269265 hideOnEscape = false ,
270266}
271267
272- E .PopupDialogs .DELETE_GRAYS = {
273- text = format (' |cffff0000%s|r' , L [" Delete gray items?" ]),
274- button1 = YES ,
275- button2 = NO ,
276- OnAccept = function ()
277- B :VendorGrays (true )
278-
279- for _ , info in ipairs (B .SellFrame .Info .itemList ) do
280- PickupContainerItem (info [1 ], info [2 ])
281- DeleteCursorItem ()
282- end
283-
284- wipe (B .SellFrame .Info .itemList )
285- end ,
286- OnShow = function (self )
287- MoneyFrame_Update (self .moneyFrame , E .PopupDialogs .DELETE_GRAYS .Money )
288- end ,
289- timeout = 4 ,
290- whileDead = 1 ,
291- hideOnEscape = false ,
292- hasMoneyFrame = 1 ,
293- }
294-
295268E .PopupDialogs .BUY_BANK_SLOT = {
296269 text = CONFIRM_BUY_BANK_SLOT ,
297270 button1 = YES ,
0 commit comments