Quantcast

Removed wrapper functions for recipe methods since they're now unnecessary.

James D. Callahan III [03-08-11 - 00:46]
Removed wrapper functions for recipe methods since they're now unnecessary.
Filename
Recipe.lua
diff --git a/Recipe.lua b/Recipe.lua
index d280e58..0ee6a4a 100644
--- a/Recipe.lua
+++ b/Recipe.lua
@@ -87,136 +87,6 @@ function addon:AddRecipe(spell_id, skill_level, item_id, quality, profession, sp
 	return recipe
 end

---- Adds filtering flags to a specific tradeskill.
--- @name AckisRecipeList:AddRecipeFlags
--- @usage AckisRecipeList:AddRecipeFlags(28927, F.ALLIANCE, F.VENDOR, F.IBOE, F.RBOP, F.HEALER, F.CASTER, F.ALDOR)
--- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which the filter flags are being added to
--- @param ... A listing of filtering flags.  See [[API/database-documentation]] for a listing of filter flags
--- @return None, array is passed as a reference.
-function addon:AddRecipeFlags(spell_id, ...)
-	private.recipe_list[spell_id]:AddFilters(...)
-end
-
-do
-	-- Helper function to add all recipe acquire information.  Called via a wrapper function.
-	local function GenericAddRecipeAcquire(spell_id, acquire_type, type_string, unit_list, ...)
-		private.recipe_list[spell_id]:AddAcquireData(acquire_type, type_string, unit_list, ...)
-	end
-
-	--- Adds mob drop acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeMobDrop
-	-- @usage AckisRecipeList::AddRecipeMobDrop(28564, 24664)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of monsters that drop that recipe.
-	-- @return None.
-	function addon:AddRecipeMobDrop(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.MOB_DROP, "Mob", private.mob_list, ...)
-	end
-
-	--- Adds trainer acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeTrainer
-	-- @usage AckisRecipeList:AddRecipeTrainer(33732, 18802, 19052, 33674, 27023, 33608, 16588, 27029)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of trainers that teach the recipe.
-	-- @return None.
-	function addon:AddRecipeTrainer(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.TRAINER, "Trainer", private.trainer_list, ...)
-	end
-
-	--- Adds vendor acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeVendor
-	-- @usage AckisRecipeList:AddRecipeVendor(39639, 18821, 18822)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of vendors that sell the recipe.
-	-- @return None.
-	function addon:AddRecipeVendor(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.VENDOR, "Vendor", private.vendor_list, ...)
-	end
-
-	--- Adds limited supply vendor acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeLimitedVendor
-	-- @usage AckisRecipeList:AddRecipeLimitedVendor(3449, 4878, 1)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of limited supply vendors that sell the recipe followed by the amount they sell.
-	-- @return None.
-	function addon:AddRecipeLimitedVendor(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.VENDOR, "Limited Vendor", private.vendor_list, ...)
-	end
-
-	--- Adds world drop acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeWorldDrop
-	-- @usage AckisRecipeList:AddRecipeWorldDrop(3450, "Kalimdor", "Eastern Kingdoms")
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of the zones where the recipe drops from.
-	-- @return None.
-	function addon:AddRecipeWorldDrop(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.WORLD_DROP, nil, nil, ...)
-	end
-
-	--- Adds quest reward acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeQuest
-	-- @usage AckisRecipeList:AddRecipeQuest(66659, 14151)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of quests that reward the recipe.
-	-- @return None.
-	function addon:AddRecipeQuest(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.QUEST, "Quest", private.quest_list, ...)
-	end
-
-	--- Adds achievement reward acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeAchievement
-	-- @usage AckisRecipeList:AddRecipeAchievement(92688, 5024)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of achievments that reward the recipe.
-	-- @return None.
-	function addon:AddRecipeAchievement(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.ACHIEVEMENT, "Achievement", nil, ...)
-	end
-
---[[
-	function addon:AddRecipeRetired(spell_id, ...)
-		local retired_db = {
-			[1] = "Retired in Wrath",
-			[2] = "Retired in Cata",
-		}
-		GenericAddRecipeAcquire(spell_id, A.RETIRED, "Retired", retired_db, 1)
-	end
-]]--
-
-	--- Adds custom acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeCustom
-	-- @usage AckisRecipeList:AddRecipeCustom(12086, 48)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of custom entries for that recipe.
-	-- @return None.
-	function addon:AddRecipeCustom(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.CUSTOM, "Custom", private.custom_list, ...)
-	end
-
-	--- Adds seasonal acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeSeason
-	-- @usage AckisRecipeList:AddRecipeSeason(21143, 1)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param ... A listing of seasonal events where the recipe can be obtained.
-	-- @return None.
-	function addon:AddRecipeSeason(spell_id, ...)
-		GenericAddRecipeAcquire(spell_id, A.SEASONAL, "Seasonal", private.seasonal_list, ...)
-	end
-
-	-- This function can NOT use GenericAddRecipeAcquire() - reputation vendors are more complicated than the other acquire types.
-	--- Adds acquire methods to a specific tradeskill.
-	-- @name AckisRecipeList:AddRecipeRepVendor
-	-- @usage AckisRecipeList:AddRecipeRepVendor(28927, FAC.ALDOR, REP.HONORED, 19321)
-	-- @param spell_id The [[http://www.wowpedia.org/SpellLink|Spell ID]] of the recipe which acquire methods are being added to
-	-- @param faction_id Reputation faction used.
-	-- @param rep_level Level of reputation required.
-	-- @param ... A listing of vendors associated with that faction level.
-	-- @return None.
-	function addon:AddRecipeRepVendor(spell_id, faction_id, rep_level, ...)
-		private.recipe_list[spell_id]:AddRepVendor(faction_id, rep_level, ...)
-	end
-end	-- do block
-
 -------------------------------------------------------------------------------
 -- Recipe methods.
 -------------------------------------------------------------------------------