aa489f6 - Remove unused MoveAnything compatibility code
[wowui.git] / OmaUF / UnitFrames.lua
index 89cfa4a..1fd993d 100644 (file)
@@ -2,9 +2,6 @@
 local _;
 local pairs = pairs;
 local InCombatLockdown = InCombatLockdown;
 local _;
 local pairs = pairs;
 local InCombatLockdown = InCombatLockdown;
-local CTimerAfter = C_Timer.After;
-
-local updateAuraTooltips = OmaUFAuras.UpdateAuraTooltips;
 
 local UnitFrames = CreateFrame("Frame", "OmaUnitFrame", UIParent);
 
 
 local UnitFrames = CreateFrame("Frame", "OmaUnitFrame", UIParent);
 
@@ -63,7 +60,6 @@ local hiddenFrame = CreateFrame("Frame");
 hiddenFrame:Hide();
 local arenaHidden = false;
 local function hideArenaFrames()
 hiddenFrame:Hide();
 local arenaHidden = false;
 local function hideArenaFrames()
-    -- not run if /reload happens in combat, may cause problems?
     if not arenaHidden and not InCombatLockdown() then
         arenaHidden = true;
         ArenaEnemyFrames:UnregisterAllEvents();
     if not arenaHidden and not InCombatLockdown() then
         arenaHidden = true;
         ArenaEnemyFrames:UnregisterAllEvents();
@@ -74,22 +70,10 @@ local function hideArenaFrames()
     end
 end
 
     end
 end
 
-local function updateTooltipFuncs()
-    -- let MoveAnything hook these to anchor tooltip elsewhere
-    M.UpdatePlayerTooltips();
-    M.UpdatePetTooltips();
-    M.UpdateTargetTooltips();
-    M.UpdateBossTooltips();
-    updateAuraTooltips();
-end
-
 UnitFrames:RegisterEvent("PLAYER_LOGIN");
 UnitFrames:RegisterEvent("PLAYER_LOGIN");
-UnitFrames:RegisterEvent("PLAYER_ENTERING_WORLD");
 UnitFrames:RegisterEvent("ADDON_LOADED");
 UnitFrames:SetScript("OnEvent", function(self, event, addon)
 UnitFrames:RegisterEvent("ADDON_LOADED");
 UnitFrames:SetScript("OnEvent", function(self, event, addon)
-    if event == "PLAYER_ENTERING_WORLD" then
-        CTimerAfter(0.01, updateTooltipFuncs);
-    elseif event == "ADDON_LOADED" and addon == "Blizzard_ArenaUI" then
+    if event == "ADDON_LOADED" and addon == "Blizzard_ArenaUI" then
         hideArenaFrames();
     elseif event == "PLAYER_LOGIN" then
         OmaUFLoadChar();
         hideArenaFrames();
     elseif event == "PLAYER_LOGIN" then
         OmaUFLoadChar();