956383a - Update all libraries
[wowui.git] / libs / AceGUI-3.0 / widgets / AceGUIWidget-Icon.lua
index 8d01b54..561da73 100644 (file)
@@ -9,7 +9,7 @@ if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 local select, pairs, print = select, pairs, print
 
 -- WoW APIs
 local select, pairs, print = select, pairs, print
 
 -- WoW APIs
-local CreateFrame, UIParent, GetBuildInfo = CreateFrame, UIParent, GetBuildInfo
+local CreateFrame, UIParent = CreateFrame, UIParent
 
 --[[-----------------------------------------------------------------------------
 Scripts
 
 --[[-----------------------------------------------------------------------------
 Scripts
@@ -131,12 +131,8 @@ local function Constructor()
        for method, func in pairs(methods) do
                widget[method] = func
        end
        for method, func in pairs(methods) do
                widget[method] = func
        end
-       -- SetText is deprecated, but keep it around for a while. (say, to WoW 4.0)
-       if (select(4, GetBuildInfo()) < 40000) then
-               widget.SetText = widget.SetLabel
-       else
-               widget.SetText = function(self, ...) print("AceGUI-3.0-Icon: SetText is deprecated! Use SetLabel instead!"); self:SetLabel(...) end
-       end
+
+       widget.SetText = function(self, ...) print("AceGUI-3.0-Icon: SetText is deprecated! Use SetLabel instead!"); self:SetLabel(...) end
 
        return AceGUI:RegisterAsWidget(widget)
 end
 
        return AceGUI:RegisterAsWidget(widget)
 end