removes unused code

This commit is contained in:
rgarcia
2015-11-09 13:46:29 +01:00
parent 7259ac06e8
commit ceb157b53b

View File

@@ -13,9 +13,7 @@ module UsersHelper
def comment_commentable_title(comment)
commentable = comment.commentable
if commentable.nil?
deleted_commentable_text(comment)
elsif commentable.hidden?
if commentable.hidden?
"<abbr title='#{deleted_commentable_text(comment)}'>".html_safe +
commentable.title +
"</abbr>".html_safe
@@ -30,8 +28,6 @@ module UsersHelper
t("users.show.deleted_proposal")
when "Debate"
t("users.show.deleted_debate")
else
t("users.show.deleted")
end
end