summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-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;