mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -7,7 +7,6 @@ local format, join = string.format, string.join
|
||||
local abs = math.abs
|
||||
--WoW API / Variables
|
||||
local GetInventorySlotInfo = GetInventorySlotInfo
|
||||
local GetInventoryItemID = GetInventoryItemID
|
||||
local GetItemInfo = GetItemInfo
|
||||
local UnitLevel = UnitLevel
|
||||
local GetDodgeChance = GetDodgeChance
|
||||
|
||||
@@ -8,7 +8,6 @@ local pairs, type, error = pairs, type, error
|
||||
local len = string.len
|
||||
|
||||
local CreateFrame = CreateFrame
|
||||
local InCombatLockdown = InCombatLockdown
|
||||
local IsInInstance = IsInInstance
|
||||
|
||||
function DT:Initialize()
|
||||
|
||||
@@ -4,10 +4,10 @@ local DT = E:GetModule("DataTexts");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local next, unpack = next, unpack
|
||||
local time = time
|
||||
local format, gsub, join = string.format, string.gsub, string.join
|
||||
local abs = math.abs
|
||||
local getn, insert = table.getn, table.insert
|
||||
local time, utf8sub = time, string.utf8sub
|
||||
local getn, tinsert = table.getn, table.insert
|
||||
--WoW API / Variables
|
||||
local GetGameTime = GetGameTime
|
||||
local GetNumSavedInstances = GetNumSavedInstances
|
||||
@@ -46,7 +46,7 @@ local function OnEnter(self)
|
||||
for i = 1, GetNumSavedInstances() do
|
||||
name, _, reset = GetSavedInstanceInfo(i)
|
||||
if name then
|
||||
insert(lockedInstances["raids"], {name, reset})
|
||||
tinsert(lockedInstances["raids"], {name, reset})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -75,14 +75,6 @@ local function OnUpdate(self, t)
|
||||
|
||||
if int > 0 then return end
|
||||
|
||||
if IsAddOnLoaded("TimeManager") then -- https://github.com/gashole/TimeManager
|
||||
if TimeManagerClockButton.alarmFiring then
|
||||
-- E:Flash(self)
|
||||
else
|
||||
-- E:StopFlash(self)
|
||||
end
|
||||
end
|
||||
|
||||
self.text:SetText(gsub(gsub(BetterDate(E.db.datatexts.timeFormat.." "..E.db.datatexts.dateFormat, time()), ":", timeDisplayFormat), "%s", dateDisplayFormat))
|
||||
|
||||
lastPanel = self
|
||||
|
||||
Reference in New Issue
Block a user