Skip to content

Commit

Permalink
remove unused helper methods. closes gh-551
Browse files Browse the repository at this point in the history
  • Loading branch information
herestomwiththeweather committed Mar 4, 2014
1 parent 5e8c8be commit 9405039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions app/helpers/offers_helper.rb
Expand Up @@ -15,12 +15,6 @@ def all_offers_class
end
end

def formatted_offer_categories(categories)
text = ""
categories.each {|c| text << h(c) + "<br>".html_safe}
text.html_safe
end

#
# function `horizontal_formatted_offer_categories` outputs an html string
# that includes a prefix ( ie: Listed in: ) enclosed in <span> tags and the
Expand Down
4 changes: 0 additions & 4 deletions app/helpers/reqs_helper.rb
Expand Up @@ -31,10 +31,6 @@ def approved_messages(req)
req.approved_bids.map {|bid| "Confirmed completed by #{person_link req.person} #{time_ago_in_words(bid.approved_at)} #{t('ago')}"}
end

def formatted_req_categories(categories)
(categories.map{|c| h(c.to_s)}.join("<br>") + "<br>").html_safe
end

#
# function `horizontal_formatted_req_categories` outputs an html string
# that includes a prefix ( ie: Listed in: ) enclosed in <span> tags and the
Expand Down
2 changes: 0 additions & 2 deletions app/views/offers/_offer_large.html.erb
Expand Up @@ -30,8 +30,6 @@
<%= t('offers.partial.expires') %> <%= offer.expiration_date.nil? ? '' : relative_time_ago_in_words(offer.expiration_date) %>
</p>

<%#= display formatted_offer_categories(offer.long_categories), :class => "meta" %>

<p class="meta">
<br/>
<%= t('offers.partial.available_count') %>: <%= offer.available_count %>
Expand Down

0 comments on commit 9405039

Please sign in to comment.