mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -195,7 +195,7 @@ function CC:GetCacheSize(global)
|
||||
|
||||
if global then
|
||||
for realm in pairs(self.cache) do
|
||||
for name in pairs(self.cache[realm]) do
|
||||
for _ in pairs(self.cache[realm]) do
|
||||
size = size + 1
|
||||
end
|
||||
end
|
||||
@@ -204,7 +204,7 @@ function CC:GetCacheSize(global)
|
||||
self.cacheDBCalculationTime = GetTime()
|
||||
else
|
||||
for realm in pairs(self.tempCache) do
|
||||
for name in pairs(self.tempCache[realm]) do
|
||||
for _ in pairs(self.tempCache[realm]) do
|
||||
size = size + 1
|
||||
end
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@ local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, Profi
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local pairs, type, unpack, assert = pairs, type, unpack, assert
|
||||
local pairs, assert = pairs, assert
|
||||
local getn, tremove, tContains, tinsert, wipe = table.getn, tremove, tContains, tinsert, table.wipe
|
||||
local lower = string.lower
|
||||
--WoW API / Variables
|
||||
|
||||
@@ -11,7 +11,6 @@ local floor = floor
|
||||
local format, find, match, strrep, len, sub, gsub = string.format, string.find, string.match, strrep, string.len, string.sub, string.gsub
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetActiveTalentGroup = GetActiveTalentGroup
|
||||
local GetCVar = GetCVar
|
||||
local GetFunctionCPUUsage = GetFunctionCPUUsage
|
||||
local GetTalentTabInfo = GetTalentTabInfo
|
||||
@@ -20,8 +19,6 @@ local IsInInstance, GetNumPartyMembers, GetNumRaidMembers = IsInInstance, GetNum
|
||||
local RequestBattlefieldScoreData = RequestBattlefieldScoreData
|
||||
local SendAddonMessage = SendAddonMessage
|
||||
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
|
||||
local ERR_NOT_IN_COMBAT = ERR_NOT_IN_COMBAT
|
||||
local MAX_TALENT_TABS = MAX_TALENT_TABS
|
||||
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
||||
|
||||
_, E.myclass = UnitClass("player") -- Constants
|
||||
|
||||
@@ -67,7 +67,6 @@ function E:UIScale(event)
|
||||
if E.Round and E:Round(UIParent:GetScale(), 5) ~= E:Round(scale, 5) and (event == "PLAYER_LOGIN") then
|
||||
SetCVar("UseUIScale", 1)
|
||||
SetCVar("UIScale", scale)
|
||||
WorldMapFrame.hasTaint = true;
|
||||
end
|
||||
|
||||
if (event == "PLAYER_LOGIN" or event == "UPDATE_FLOATING_CHAT_WINDOWS") then
|
||||
|
||||
Reference in New Issue
Block a user