From 27c161b37c203d81b1a11d292c93f779477b008c Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 15 Apr 2010 00:25:37 -0400 Subject: [PATCH] Removed HasCredentials() - the remaining code in it was of no use. --- Frame.lua | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Frame.lua b/Frame.lua index 73e8b2f..d54efcc 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2852,11 +2852,6 @@ do return recipe_string end - -- Used for the value portion of location_list or acquire_list entries. - function HasCredentials(affiliation) - return (affiliation == "world_drop" or type(affiliation) == "boolean") - end - function ListFrame:InsertEntry(entry, parent_entry, entry_index, entry_type, entry_expanded, expand_mode) local insert_index = entry_index @@ -2934,9 +2929,8 @@ do -- Check to see if any recipes for this acquire type will be shown - otherwise, don't show the type in the list. for spell_id, affiliation in pairs(private.acquire_list[acquire_type].recipes) do local recipe = private.recipe_list[spell_id] - local can_display = HasCredentials(affiliation) - if can_display and recipe:HasState("VISIBLE") and RecipeMatchesSearch(recipe) then + if recipe:HasState("VISIBLE") and RecipeMatchesSearch(recipe) then count = count + 1 if not recipe_registry[recipe] then @@ -2971,9 +2965,8 @@ do -- Check to see if any recipes for this location will be shown - otherwise, don't show the location in the list. for spell_id, affiliation in pairs(private.location_list[loc_name].recipes) do local recipe = private.recipe_list[spell_id] - local can_display = HasCredentials(affiliation) - if can_display and recipe:HasState("VISIBLE") and RecipeMatchesSearch(recipe) then + if recipe:HasState("VISIBLE") and RecipeMatchesSearch(recipe) then count = count + 1 if not recipe_registry[recipe] then @@ -3494,9 +3487,8 @@ do if current_entry.type == "header" then for spell_id, affiliation in pairs(private.acquire_list[acquire_id].recipes) do local recipe_entry = private.recipe_list[spell_id] - local can_display = HasCredentials(affiliation) - if can_display and recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then + if recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then local t = AcquireTable() local expand = false local type = "subheader" @@ -3529,9 +3521,8 @@ do if current_entry.type == "header" then for spell_id, affiliation in pairs(private.location_list[location_id].recipes) do local recipe_entry = private.recipe_list[spell_id] - local can_display = HasCredentials(affiliation) - if can_display and recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then + if recipe_entry:HasState("VISIBLE") and RecipeMatchesSearch(recipe_entry) then local expand = false local type = "subheader" local t = AcquireTable() -- 1.7.9.5