Quantcast

Removed conditional WoTLK code

James Whitehead II [10-13-08 - 20:28]
Removed conditional WoTLK code
Filename
Clique.lua
CliqueOptions.lua
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 <cladhaire@gmail.com>
 ----------------------------------------------------------------------------------]]

-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)