Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
`@requests` was always an empty array, then we never render the
`open_requests` partial.

Co-authored-by: Saray Cabrera Padrón <scabrerapadron@suse.de>
  • Loading branch information
David Kang and saraycp committed Sep 4, 2018
1 parent ddc2cc1 commit 12ee9f7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/api/app/controllers/webui/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def show

@comments = @package.comments.includes(:user)
@comment = Comment.new
@requests = []
@services = Backend::Api::Sources::Package.service(@project.name, @package.name)

switch_to_webui2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
= link_to "error#{failures == 1 ? '' : 's'}", project_monitor_path(project: project, pkgname: package.name, succeeded: 0,
blocked: 0, finished: 0, signing: 0, dispatching: 0,
scheduled: 0, building: 0)
= render partial: 'webui2/shared/open_requests', locals: { requests: requests, package: package, project: project }

- if devel_package
%li
Expand Down
1 change: 0 additions & 1 deletion src/api/app/views/webui2/webui/package/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
failures: @failures,
linkinfo: @linkinfo,
revision: @revision,
requests: @requests,
project: @project,
package: @package }
= render partial: 'bottom_actions'
Expand Down

0 comments on commit 12ee9f7

Please sign in to comment.