Commit d94e3df3 authored by Simpy's avatar Simpy 🐹

remove all `--Cache global variables`

parent 6be21931
......@@ -2,7 +2,6 @@ local MAJOR, MINOR = 'LibElvUIPlugin-1.0', 22
local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
--Cache global variables
--Lua functions
local pairs, tonumber, strmatch, strsub = pairs, tonumber, strmatch, strsub
local format, strsplit, strlen, gsub, ceil = format, strsplit, strlen, gsub, ceil
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('DataBars');
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local floor = floor
local format = string.format
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:NewModule("DataBars", 'AceEvent-3.0')
E.DataBars = mod
--Cache global variables
--WoW API / Variables
local CreateFrame = CreateFrame
local GetExpansionLevel = GetExpansionLevel
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('DataBars');
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local format = format
local min = min
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('DataBars');
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local format = format
--WoW API / Variables
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('DataBars');
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local _G = _G
local format = format
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars');
--Cache global variables
--Lua functions
local _G = _G
local select, tonumber, pairs = select, tonumber, pairs
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:NewModule('ActionBars', 'AceHook-3.0', 'AceEvent-3.0');
--Cache global variables
--Lua functions
local _G = _G
local pairs, select, unpack = pairs, select, unpack
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars');
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars');
--Cache global variables
--Lua functions
local _G = _G
local pairs = pairs
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars');
--Cache global variables
--Lua functions
local _G = _G
local ceil = math.ceil
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local AB = E:GetModule('ActionBars');
--Cache global variables
--Lua functions
local _G = _G
local ceil = math.ceil;
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local A = E:NewModule('Auras', 'AceHook-3.0', 'AceEvent-3.0');
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local _G = _G
local GetTime = GetTime
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule('Bags');
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local B = E:NewModule('Bags', 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0');
local Search = E.Libs.ItemSearch
--Cache global variables
--Lua functions1
local _G = _G
local type, ipairs, pairs, unpack, select, assert, pcall = type, ipairs, pairs, unpack, select, assert, pcall
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local B = E:GetModule('Bags')
local Search = E.Libs.ItemSearch
--Cache global variables
--Lua functions
local ipairs, pairs, select, unpack, pcall = ipairs, pairs, select, unpack, pcall
local tinsert, tremove, sort, wipe = table.insert, table.remove, sort, wipe
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard')
--Cache global variables
--Lua functions
local _G = _G
--WoW-Api
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
local _G = _G
--Lua functions
local pairs = pairs
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
--Lua functions
local _G = _G
......
......@@ -5,7 +5,6 @@ local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
local S = E:GetModule('Skins');
--Cache global variables
local tonumber, collectgarbage = tonumber, collectgarbage
local floor = math.floor
local format, strsub = string.format, strsub
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
--Lua functions
local _G = _G
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
local _G = _G
--Lua functions
local min = math.min
......
local E, L, DF = unpack(select(2, ...))
local B = E:GetModule('Blizzard');
--Cache global variables
--Lua functions
local select, unpack, pairs = select, unpack, pairs
--WoW API / Variables
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local CH = E:NewModule('Chat', 'AceTimer-3.0', 'AceHook-3.0', 'AceEvent-3.0')
local LSM = E.Libs.LSM
--Cache global variables
local _G = _G
--Lua functions
local ipairs, wipe, time, difftime = ipairs, wipe, time, difftime
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local select, pairs = select, pairs
local format = string.format
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local pairs = pairs
local format = string.format
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format = string.format
local join = string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local min, max = math.min, math.max
local format, join = string.format, string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
local abs = abs
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local select = select
local join = string.join
......
local E, L, V, P, G = unpack(select(2, ...)) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format = string.format
local tsort = table.sort
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--WoW API / Variables
local GetLFGRandomDungeonInfo = GetLFGRandomDungeonInfo
local GetLFGRoleShortageRewards = GetLFGRoleShortageRewards
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local floor = math.floor
local format, join = string.format, string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
--WoW API / Variables
......
......@@ -4,7 +4,6 @@ local LDB = E.Libs.LDB
local LSM = E.Libs.LSM
local TT = E:GetModule("Tooltip")
--Cache global variables
--Lua functions
local pairs, type, error = pairs, type, error
local len = string.len
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local time = time
local max = math.max
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local pairs = pairs
local format, join = string.format, string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local pairs = pairs
local find, join = string.find, string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local type, ipairs, pairs, select = type, ipairs, pairs, select
local sort, next, wipe, tremove, tinsert = table.sort, next, wipe, tremove, tinsert
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format = string.format
local tsort = table.sort
......
local E, L, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local wipe = wipe
local pairs = pairs
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local ipairs, select, sort, unpack, wipe, ceil = ipairs, select, table.sort, unpack, wipe, ceil
local format, strfind, strjoin, strsplit = string.format, strfind, strjoin, strsplit
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
local format = string.format
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local time = time
local max = math.max
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local select, ipairs = select, ipairs
local format = string.format
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local next, pairs, select, type = next, pairs, select, type
local format, strjoin, wipe = string.format, strjoin, wipe
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local join = string.join
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local select, collectgarbage = select, collectgarbage
local sort, wipe = table.sort, wipe
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local next, unpack = next, unpack
local format, strjoin = string.format, string.join
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local DT = E:GetModule('DataTexts')
--Cache global variables
--Lua functions
local format, join = string.format, string.join
--WoW API / Variables
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local M = E:NewModule('Minimap', 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0');
E.Minimap = M
--Cache global variables
--Lua functions
local _G = _G
local tinsert = table.insert
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local M = E:NewModule('WorldMap', 'AceHook-3.0', 'AceEvent-3.0', 'AceTimer-3.0');
E.WorldMap = M
--Cache global variables
--Lua functions
local _G = _G
local pairs = pairs
......
......@@ -3,7 +3,6 @@ local AFKString = _G["AFK"]
local AFK = E:NewModule('AFK', 'AceEvent-3.0', 'AceTimer-3.0');
local CH = E:GetModule("Chat")
--Cache global variables
--Lua functions
local _G = _G
local GetTime = GetTime
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local M = E:GetModule('Misc');
local CH = E:GetModule("Chat");
--Cache global variables
--Lua functions
local format = string.format
local select, unpack, pairs, wipe = select, unpack, pairs, wipe
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local D = E:NewModule('DebugTools', 'AceEvent-3.0', 'AceHook-3.0');
E.DebugTools = D
--Cache global variables
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local CreateFrame = CreateFrame
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local M = E:NewModule('Misc', 'AceEvent-3.0', 'AceTimer-3.0');
E.Misc = M;
--Cache global variables
--Lua functions
local _G = _G
local format, gsub = string.format, string.gsub
......
local E, L, V, P, G = unpack(select(2, ...)) -- Import Functions/Constants, Config, Locales
local RU = E:NewModule('RaidUtility', 'AceEvent-3.0');
--Cache global variables
--Lua functions
local _G = _G
local unpack, ipairs, pairs, next = unpack, ipairs, pairs, next
......
......@@ -2,7 +2,6 @@
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local M = E:GetModule('Misc');
--Cache global variables
--Lua functions
local sin, cos, rad = math.sin, math.cos, math.rad
--WoW API / Variables
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local THREAT = E:NewModule('Threat', 'AceEvent-3.0');
--Cache global variables
--Lua functions
local pairs, select = pairs, select
local twipe = table.wipe
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local TOTEMS = E:NewModule('Totems', 'AceEvent-3.0');
E.TotemBar = TOTEMS
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
......
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local mod = E:GetModule('NamePlates')
--Cache global variables
--WoW API / Variables
local CreateFrame = CreateFrame
local UnitAura = UnitAura
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('NamePlates')
local LSM = E.Libs.LSM
--Cache global variables
--Lua functions
local _G = _G
local format = format
......
......@@ -2,7 +2,6 @@ local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, Private
local mod = E:GetModule('NamePlates')
local LSM = E.Libs.LSM
--Cache global variables