Skip to content

Commit

Permalink
Remove helpers only used in an unused partial
Browse files Browse the repository at this point in the history
As _single_request partial is not used in any part in the code, and the
helpers priority_number and priority_description are only used in this
unused helper, we remove both, the unused partial, and these helpers.
  • Loading branch information
eduardoj committed Sep 2, 2019
1 parent 9e3e1e9 commit e69b67c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
26 changes: 0 additions & 26 deletions src/api/app/helpers/webui/request_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,32 +84,6 @@ def map_request_type(type)
end
end

def priority_description(prio)
case prio
when 'low'
'Work on this request if nothing else needs to be done.'
when 'moderate'
'Work on this request.'
when 'important'
'Finish other requests you have begun, then work on this request.'
when 'critical'
'Drop everything and work on this request.'
end
end

def priority_number(prio)
case prio
when 'low'
'1'
when 'moderate'
'2'
when 'important'
'3'
when 'critical'
'4'
end
end

def target_project_link(row)
result = ''
if row.target_project
Expand Down
19 changes: 0 additions & 19 deletions src/api/app/views/shared/_single_request.html.haml

This file was deleted.

0 comments on commit e69b67c

Please sign in to comment.