Quantcast

Changed addon:CheckDisplayRecipe() to CanDisplayRecipe() - it's only ever used as a helper function for addon:UpdateFilters().

Author torhal <torhal@dummy.example.com>
Author date 2009-11-15 01:34:58
Author local date 2009-11-15 01:34:58 +0000
Committer torhal <torhal@dummy.example.com>
Committer date 2009-11-15 01:34:58
Committer local date 2009-11-15 01:34:58 +0000
Commit e257d97ac9509b2bdb8cf00806dec8776c4617c1
Tree 8c46683990187c7b53554242bbef3778398c9573
Parent 886d126a5c741e34ba5c817d6d1fa15245836c9d
Changed addon:CheckDisplayRecipe() to CanDisplayRecipe() - it's only ever used as a helper function for addon:UpdateFilters().
In CanDisplayRecipe(): removed function parameters - they were not needed since the information is all file-scope. Removed profession check since it is already performed in addon:UpdateFilters(). Renamed variables "generaldb" and "flags" to "general_filters" and "recipe_flags" for clarity. Added some local variables to reduce some table lookups. Fixed named flag numbering (fixes ticket 864).
Moved addon:UpdateFilters() into the do block with CanDisplayRecipe() since it only needs to be accessible from that function.
In addon:UpdateFilters(): Re-write for improved efficiency/readability, removed all parameters as unnecessary.