summaryrefslogtreecommitdiffstats
path: root/extensions/ProductDashboard
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-25 23:31:50 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-25 23:31:50 +0100
commitf65142bcd0d60ef389203a2e0149a16bd46f48d3 (patch)
treea6781bb393490817f4f18692d49902cf377ced32 /extensions/ProductDashboard
parentcd37b2c8fdb4580fd49b9a75c3d38236db898b4c (diff)
downloadbugzilla-f65142bcd0d60ef389203a2e0149a16bd46f48d3.tar.gz
bugzilla-f65142bcd0d60ef389203a2e0149a16bd46f48d3.tar.xz
remove duplicate subroutine in ProductDashboard/lib/Queries.pm
Diffstat (limited to 'extensions/ProductDashboard')
-rw-r--r--extensions/ProductDashboard/lib/Queries.pm18
1 files changed, 0 insertions, 18 deletions
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
@@ -150,24 +150,6 @@ sub by_severity {
$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;
- 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 bug_severity, COUNT(bug_id),
ROUND(((COUNT(bugs.bug_id) / ( SELECT COUNT(*) FROM bugs WHERE bugs.product_id = ? $extra)) * 100))
FROM bugs