* Removed some legacy party updating code that was causing taint log messages
James Whitehead II [01-25-08 - 16:35]
* Removed some legacy party updating code that was causing taint log messages
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index e4308d0..7bf8b8a 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -117,37 +117,12 @@ function PerfectRaid:Enable()
self:RegisterEvent("UNIT_MAXFOCUS", "UNIT_MAXMANA")
self:RegisterEvent("CHAT_MSG_SYSTEM")
- self:UpdateRaidFrames()
- self:PARTY_MEMBERS_CHANGED()
-end
-
-function PerfectRaid:UpdateRaidFrames()
- local list = self.db.profile.headers
-
- self.hasparty = nil
-
- for idx=1,40 do
- local name = "PRHeader"..idx
- local frame = getglobal(name)
- if not frame then break end
- if not list[idx] then
- for i=1,frame:GetNumChildren() do
- local button = frame:GetAttribute("child"..i)
- button:SetAttribute("unit", nil)
- button:Hide()
- end
- end
- frame:Hide()
- frame.bg:Hide()
- end
-
- --name, title, filter, sortOrder, strict, group, order, columns, coloffset, colanchor)
- for idx,entry in ipairs(list) do
+ -- Create our raid frames
+ for idx,entry in ipairs(self.db.profile.headers) do
self:CreateRaidFrame(idx)
end
-
- -- Call RAID_ROSTER_UPDATE to update subgroup, etc.
- self:RAID_ROSTER_UPDATE()
+
+ self:PARTY_MEMBERS_CHANGED()
end
function PerfectRaid:SavePosition(name)
@@ -738,11 +713,6 @@ function PerfectRaid:RAID_ROSTER_UPDATE()
end
end
-function PerfectRaid:PARTY_MEMBERS_CHANGED()
- self.inparty = GetNumPartyMembers() > 0
- self:UpdateRaidFrames()
-end
-
function PerfectRaid:UNIT_DISPLAYPOWER(event, unit)
if not frames[unit] then return end
local color = ManaBarColor[UnitPowerType(unit)]