Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
thank you @medihack
fixes mbleigh#115
  • Loading branch information
tilsammans committed Apr 23, 2013
1 parent b58abba commit ea96a97
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/acts_as_taggable_on/acts_as_taggable_on/ownership.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def owner_tag_list_on(owner, context)
add_custom_context(context)

cache = cached_owned_tag_list_on(context)
cache.delete_if { |key, value| key.id == owner.id && key.class == owner.class }

cache[owner] ||= ActsAsTaggableOn::TagList.new(*owner_tags_on(owner, context).map(&:name))
end
Expand All @@ -61,7 +60,6 @@ def set_owner_tag_list_on(owner, context, new_list)
add_custom_context(context)

cache = cached_owned_tag_list_on(context)
cache.delete_if { |key, value| key.id == owner.id && key.class == owner.class }

cache[owner] = ActsAsTaggableOn::TagList.from(new_list)
end
Expand Down

0 comments on commit ea96a97

Please sign in to comment.