Remove the code for the UPDATE_FACTION event - it is no longer needed.
James D. Callahan III [03-09-10 - 10:35]
Remove the code for the UPDATE_FACTION event - it is no longer needed.
diff --git a/ARL.lua b/ARL.lua
index c119af4..0064fc0 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -541,8 +541,6 @@ function addon:OnEnable()
self:RegisterEvent("TRADE_SKILL_SHOW") -- Make addon respond to the tradeskill windows being shown
self:RegisterEvent("TRADE_SKILL_CLOSE") -- Addon responds to tradeskill windows being closed.
self:RegisterEvent("TRADE_SKILL_UPDATE")
- -- http://wowprogramming.com/docs/events/UPDATE_FACTION
- --self:RegisterEvent("UPDATE_FACTION") -- Addon responds to faction changes by the player
if addon.db.profile.scantrainers then
self:RegisterEvent("TRAINER_SHOW")
@@ -741,24 +739,6 @@ function addon:MERCHANT_SHOW()
end
do
-
- -- We don't want to update the reputation with every kill, lets keep track of how many we've done
- -- and only do it every 10th update.
- local factionincrement = 0
-
- ---Event used to update the internal faction database when your faction changes.
- function addon:UPDATE_FACTION()
- -- Increment the faction counter
- factionincrement = factionincrement + 1
- -- Only update the rep levels on every 10th event firing.
- if (factionincrement % 10) then
- Player:SetReputationLevels()
- end
- end
-
-end
-
-do
local GetTradeSkillListLink = _G.GetTradeSkillListLink
local UnitName = _G.UnitName
local GetRealmName = _G.GetRealmName