@@ -2,16 +2,13 @@ local E, L, V, P, G = unpack(ElvUI)
2
2
local AB = E :GetModule (' ActionBars' )
3
3
local UF = E :GetModule (' UnitFrames' )
4
4
local M = E :GetModule (' Misc' )
5
- local B = E :GetModule (' Bags' )
6
5
local S = E :GetModule (' Skins' )
7
6
8
7
local _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
12
10
13
11
local CreateFrame = CreateFrame
14
- local DeleteCursorItem = DeleteCursorItem
15
12
local MoneyFrame_Update = MoneyFrame_Update
16
13
local UnitIsDeadOrGhost , InCinematic = UnitIsDeadOrGhost , InCinematic
17
14
local PurchaseSlot , GetBankSlotCost = PurchaseSlot , GetBankSlotCost
@@ -26,7 +23,6 @@ local ChatEdit_FocusActiveWindow = ChatEdit_FocusActiveWindow
26
23
local DisableAddOn = (C_AddOns and C_AddOns .DisableAddOn ) or DisableAddOn
27
24
local EnableAddOn = (C_AddOns and C_AddOns .EnableAddOn ) or EnableAddOn
28
25
local IsAddOnLoaded = (C_AddOns and C_AddOns .IsAddOnLoaded ) or IsAddOnLoaded
29
- local PickupContainerItem = (C_Container and C_Container .PickupContainerItem ) or PickupContainerItem
30
26
31
27
local STATICPOPUP_TEXTURE_ALERT = STATICPOPUP_TEXTURE_ALERT
32
28
local STATICPOPUP_TEXTURE_ALERTGEAR = STATICPOPUP_TEXTURE_ALERTGEAR
@@ -269,29 +265,6 @@ E.PopupDialogs.RESET_NP_AF = {
269
265
hideOnEscape = false ,
270
266
}
271
267
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
-
295
268
E .PopupDialogs .BUY_BANK_SLOT = {
296
269
text = CONFIRM_BUY_BANK_SLOT ,
297
270
button1 = YES ,
0 commit comments