From fe82b6e70cabc517d935bb4165a6d08af4150735 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 29 Sep 2016 21:35:33 +0200 Subject: [PATCH] target: remove useless code --- modules/target.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/modules/target.lua b/modules/target.lua index 83b6dee5..f3c9c5a9 100644 --- a/modules/target.lua +++ b/modules/target.lua @@ -9,14 +9,6 @@ pfUI:RegisterModule("target", function () pfUI.uf.target = CreateFrame("Button","pfTarget",UIParent) pfUI.uf.target:Hide() - pfUI.uf.target:RegisterEvent("PLAYER_TARGET_CHANGED") - pfUI.uf.target:SetScript("OnEvent", function() - if UnitExists("target") then - pfUI.uf.target:Show() - else - pfUI.uf.target:Hide() - end - end) pfUI.uf.target:SetWidth(pfUI_config.unitframes.target.width) pfUI.uf.target:SetHeight(pfUI_config.unitframes.target.height+pfUI_config.unitframes.target.pheight) pfUI.uf.target:SetPoint("BOTTOMLEFT", UIParent, "BOTTOM", 75, 125)