summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-26 00:00:05 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-26 00:00:05 +0100
commitc87e45eef32d40e282148c733651df0d759a8b8b (patch)
tree63a4ed70113f5a9950635af0366b214edace16fa
parentf65142bcd0d60ef389203a2e0149a16bd46f48d3 (diff)
downloadbugzilla-c87e45eef32d40e282148c733651df0d759a8b8b.tar.gz
bugzilla-c87e45eef32d40e282148c733651df0d759a8b8b.tar.xz
remove un-used code in ProductDashboard/lib/Util.pm
-rw-r--r--extensions/ProductDashboard/lib/Util.pm21
1 files changed, 0 insertions, 21 deletions
diff --git a/extensions/ProductDashboard/lib/Util.pm b/extensions/ProductDashboard/lib/Util.pm
index d83ddf187..5d9c161ef 100644
--- a/extensions/ProductDashboard/lib/Util.pm
+++ b/extensions/ProductDashboard/lib/Util.pm
@@ -17,7 +17,6 @@ use base qw(Exporter);
closed_states
quoted_open_states
quoted_closed_states
- filter_bugs
bug_milestone_link_total
bug_milestone_link_open
bug_milestone_link_closed
@@ -26,8 +25,6 @@ use base qw(Exporter);
use Bugzilla::Status;
use Bugzilla::Util;
-use Bugzilla::Status;
-
our $_open_states;
sub open_states {
$_open_states ||= Bugzilla::Status->match({ is_open => 1, isactive => 1 });
@@ -95,22 +92,4 @@ sub bug_milestone_link_closed {
"&target_milestone=" . url_quote($milestone->name) . "&bug_status=__closed__";
}
-sub filter_bugs {
- my ($unfiltered_bugs) = @_;
- my $dbh = Bugzilla->dbh;
-
- # Filter out which bugs that cannot be viewed
- my $params = Bugzilla::CGI->new({ bug_id => [ map { $_->{'id'} } @$unfiltered_bugs ] });
- my $search = Bugzilla::Search->new(fields => ['bug_id' ], params => $params );
- my %filtered_bug_ids = map { $_ => 1 } @{$dbh->selectcol_arrayref($search->getSQL())};
-
- my @filtered_bugs;
- foreach my $bug (@$unfiltered_bugs) {
- next if !$filtered_bug_ids{$bug->{'id'}};
- push(@filtered_bugs, $bug);
- }
-
- return \@filtered_bugs;
-}
-
1;