From 88552886c1ea2c100cb81146abc358872a31617a Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 13 Oct 2008 20:28:09 +0000 Subject: [PATCH] Removed conditional WoTLK code --- Clique.lua | 4 ---- CliqueOptions.lua | 24 ++++-------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/Clique.lua b/Clique.lua index 4f5d98e..dd1a79f 100644 --- a/Clique.lua +++ b/Clique.lua @@ -2,10 +2,6 @@ Clique by Cladhaire ----------------------------------------------------------------------------------]] -function IsWrathBuild() - return select(4, GetBuildInfo()) >= 30000 -end - Clique = {Locals = {}} assert(DongleStub, string.format("Clique requires DongleStub.")) diff --git a/CliqueOptions.lua b/CliqueOptions.lua index be0161b..f808d93 100644 --- a/CliqueOptions.lua +++ b/CliqueOptions.lua @@ -343,11 +343,7 @@ function Clique:CreateOptionsFrame() local update = function() Clique:ListScrollUpdate() end CliqueListScroll:SetScript("OnVerticalScroll", update, function(self, offset) - if IsWrathBuild() then - FauxScrollFrame_OnVerticalScroll(self, offset, ENTRY_SIZE, update) - else - FauxScrollFrame_OnVerticalScroll(ENTRY_SIZE, update) - end + FauxScrollFrame_OnVerticalScroll(self, offset, ENTRY_SIZE, update) end) CliqueListScroll:SetScript("OnShow", update) @@ -466,11 +462,7 @@ function Clique:CreateOptionsFrame() end CliqueTextListScroll:SetScript("OnVerticalScroll", function(self, offset) - if IsWrathBuild() then - FauxScrollFrame_OnVerticalScroll(self, offset, 22, update) - else - FauxScrollFrame_OnVerticalScroll(22, update) - end + FauxScrollFrame_OnVerticalScroll(self, offset, 22, update) end) CliqueTextListFrame:SetScript("OnShow", update) CliqueTextListFrame:Hide() @@ -953,11 +945,7 @@ function Clique:CreateOptionsFrame() CliqueIconScrollFrame:SetScript("OnVerticalScroll", function(self, offset) local MACRO_ICON_ROW_HEIGHT = 36 - if IsWrathBuild() then - FauxScrollFrame_OnVerticalScroll(self, offset, MACRO_ICON_ROW_HEIGHT, updateicons) - else - FauxScrollFrame_OnVerticalScroll(self, MACRO_ICON_ROW_HEIGHT, updateicons) - end + FauxScrollFrame_OnVerticalScroll(self, offset, MACRO_ICON_ROW_HEIGHT, updateicons) end) CliqueIconSelectFrame:SetScript("OnShow", function(self) @@ -986,11 +974,7 @@ function Clique:ListScrollUpdate() Clique:SortList() local clickCasts = self.sortList local offset = FauxScrollFrame_GetOffset(CliqueListScroll) - if IsWrathBuild() then - FauxScrollFrame_Update(CliqueListScroll, table.getn(clickCasts), NUM_ENTRIES, ENTRY_SIZE) - else - FauxScrollFrame_Update(CliqueListScroll, table.getn(clickCasts), NUM_ENTRIES, ENTRY_SIZE) - end + FauxScrollFrame_Update(CliqueListScroll, table.getn(clickCasts), NUM_ENTRIES, ENTRY_SIZE) if not CliqueListScroll:IsShown() then CliqueFrame:SetWidth(400) -- 1.7.9.5