Skip to content

Commit

Permalink
Cleanup some unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Jul 19, 2024
1 parent 398a5d2 commit 1919a1d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 19 deletions.
11 changes: 2 additions & 9 deletions Collector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ local Collector = GatherMate:NewModule("Collector", "AceEvent-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale("GatherMate2",true)
local NL = LibStub("AceLocale-3.0"):GetLocale("GatherMate2Nodes") -- for get the local name of Gas Cloud´s

local WoW10 = select(4, GetBuildInfo()) >= 100000

local Display = nil
-- prevSpell, curSpell are markers for what has been cast now and the lastcast
-- gatherevents if a flag for wether we are listening to events
local prevSpell, curSpell, foundTarget, gatherEvents, ga
local prevSpell, curSpell, foundTarget, ga

local GetSpellName = C_Spell and C_Spell.GetSpellName or GetSpellInfo

Expand Down Expand Up @@ -45,12 +42,10 @@ local spells =
[205243] = "Treasure", -- skinning ground warts
}
local tooltipLeftText1 = _G["GameTooltipTextLeft1"]
local strfind, stringmatch = string.find, string.match
local strfind = string.find
local pii = math.pi
local sin = math.sin
local cos = math.cos
local gsub = gsub
local strtrim = strtrim
--[[
This search string code no longer needed since we use CombatEvent to detect gas clouds harvesting
]]
Expand Down Expand Up @@ -79,7 +74,6 @@ function Collector:RegisterGatherEvents()
--self:RegisterEvent("LOOT_CLOSED","GatherCompleted")
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED", "GasBuffDetector")
self:RegisterEvent("CHAT_MSG_LOOT","SecondaryGasCheck") -- for Storm Clouds
gatherEvents = true
end

--[[
Expand All @@ -95,7 +89,6 @@ function Collector:UnregisterGatherEvents()
self:UnregisterEvent("UI_ERROR_MESSAGE")
--self:UnregisterEvent("LOOT_CLOSED")
self:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
gatherEvents = false
end

local CrystalizedWater = (C_Item.GetItemNameByID(37705)) or ""
Expand Down
1 change: 0 additions & 1 deletion Config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
local GatherMate = LibStub("AceAddon-3.0"):GetAddon("GatherMate2")
local Config = GatherMate:NewModule("Config","AceEvent-3.0")
local Display = GatherMate:GetModule("Display")
local L = LibStub("AceLocale-3.0"):GetLocale("GatherMate2", false)

-- Databroker support
Expand Down
10 changes: 3 additions & 7 deletions Display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,23 @@ local pinClickedOn
-- our current zone
local zone = -1
-- cache of table insert functions
local tinsert, tremove, next, pairs = tinsert, tremove, next, pairs
local next, pairs = next, pairs
-- minimap rotation
local rotateMinimap = GetCVar("rotateMinimap") == "1"
-- shape of the minimap
local minimapShape
-- is the minimap indoors or outdoors
local indoors = GetCVar("minimapZoom")+0 == Minimap:GetZoom() and "outdoor" or "indoor"
-- diameter of the minimap
local mapRadius, minimapWidth, minimapHeight, minimapScale, lastFacing, lastZoom
local minimapStrata, minimapFrameLevel
-- math function cache
local math_sin, math_cos, abs, max = math.sin, math.cos, math.abs, math.max
local math_sin, math_cos, max = math.sin, math.cos, math.max
local sin, cos
-- API function cache
local GetRealZoneText = GetRealZoneText
local GetProfessionInfo = GetProfessionInfo
local strfind, format = string.find, string.format
local format = string.format
local trackingCircle, nodeTextures
local db
local Minimap = Minimap
local inInstance
local nodeRange = 2
local forceNextUpdate
local trackShow = {}
Expand Down
2 changes: 0 additions & 2 deletions GatherMate2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ local defaults = {
}
},
}
local floor = floor
local next = next

--[[
Setup a few databases, we sub divide namespaces for resetting/importing
Expand Down

0 comments on commit 1919a1d

Please sign in to comment.