mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
cleanup
This commit is contained in:
@@ -8,7 +8,7 @@ local LIP = LibStub("ItemPrice-1.1", true);
|
||||
local _G = _G
|
||||
local type, ipairs, pairs, unpack, select, assert, pcall = type, ipairs, pairs, unpack, select, assert, pcall
|
||||
local tinsert = table.insert
|
||||
local floor, ceil = math.floor, math.ceil
|
||||
local floor = math.floor
|
||||
local len, gsub, sub, find, match = string.len, string.gsub, string.sub, string.find, string.match
|
||||
--WoW API / Variables
|
||||
local BankFrameItemButton_OnUpdate = BankFrameItemButton_OnUpdate
|
||||
|
||||
@@ -19,7 +19,6 @@ local GetContainerItemLink = GetContainerItemLink
|
||||
local PickupContainerItem = PickupContainerItem
|
||||
local SplitContainerItem = SplitContainerItem
|
||||
local GetContainerNumSlots = GetContainerNumSlots
|
||||
local GetContainerNumFreeSlots = GetContainerNumFreeSlots
|
||||
local ContainerIDToInventoryID = ContainerIDToInventoryID
|
||||
local GetInventoryItemLink = GetInventoryItemLink
|
||||
local CursorHasItem = CursorHasItem
|
||||
@@ -60,7 +59,6 @@ local bagGroups = {}
|
||||
local initialOrder = {}
|
||||
local itemTypes, itemSubTypes
|
||||
local bagSorted, bagLocked = {}, {}
|
||||
local bagRole
|
||||
local moves = {}
|
||||
local targetItems = {}
|
||||
local sourceUsed = {}
|
||||
@@ -254,7 +252,6 @@ local function IterateForwards(bagList, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
bagRole = nil
|
||||
end
|
||||
|
||||
local function IterateBackwards(bagList, i)
|
||||
@@ -274,11 +271,9 @@ local function IterateBackwards(bagList, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
bagRole = nil
|
||||
end
|
||||
|
||||
function B.IterateBags(bagList, reverse, role)
|
||||
bagRole = role
|
||||
return (reverse and IterateBackwards or IterateForwards), bagList, 0
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user