From f65142bcd0d60ef389203a2e0149a16bd46f48d3 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Mon, 25 Feb 2013 17:31:50 -0500 Subject: remove duplicate subroutine in ProductDashboard/lib/Queries.pm --- extensions/ProductDashboard/lib/Queries.pm | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'extensions/ProductDashboard/lib/Queries.pm') diff --git a/extensions/ProductDashboard/lib/Queries.pm b/extensions/ProductDashboard/lib/Queries.pm index 15d2b8e9e..2b7950b04 100644 --- a/extensions/ProductDashboard/lib/Queries.pm +++ b/extensions/ProductDashboard/lib/Queries.pm @@ -142,24 +142,6 @@ sub by_priority { undef, $product->id, $product->id); } -sub by_severity { - my ($product, $bug_status) = @_; - my $dbh = Bugzilla->dbh; - my $extra = ''; - - $extra = "AND bugs.bug_status IN (" . join(',', quoted_open_states()) . ")" if $bug_status eq 'open'; - $extra = "AND bugs.bug_status IN (" . join(',', quoted_closed_states()) . ")" if $bug_status eq 'closed'; - - return $dbh->selectall_arrayref("SELECT priority, COUNT(bug_id), - ROUND(((COUNT(bugs.bug_id) / ( SELECT COUNT(*) FROM bugs WHERE bugs.product_id = ? $extra)) * 100)) - FROM bugs - WHERE product_id = ? - $extra - GROUP BY priority - ORDER BY COUNT(bug_id) DESC", - undef, $product->id, $product->id); -} - sub by_severity { my ($product, $bug_status) = @_; my $dbh = Bugzilla->dbh; -- cgit v1.2.3-24-g4f1b