summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-04 01:22:41 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-03-04 01:22:41 +0100
commita6440668382c448e7c6367acce669def710f5fb5 (patch)
tree50f1b60b885c4d57f83367fd39c040c3099fe807 /Bugzilla
parentd275f99f6cce590b7a0bb8268a2407ae13ea8d77 (diff)
downloadbugzilla-a6440668382c448e7c6367acce669def710f5fb5.tar.gz
bugzilla-a6440668382c448e7c6367acce669def710f5fb5.tar.xz
Remove _join_flag_tables from Search.pm, which was dead code.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm25
1 files changed, 0 insertions, 25 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 24abc4379..5aef38c05 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2328,31 +2328,6 @@ sub _percentage_complete {
$self->_add_extra_column('actual_time');
}
-sub _join_flag_tables {
- my ($self, $args) = @_;
- my ($joins, $chart_id) = @$args{qw(joins chart_id)};
-
- my $attach_table = "attachments_$chart_id";
- my $flags_table = "flags_$chart_id";
- my $extra = $self->_user->is_insider
- ? [] : ["$attach_table.isprivate = 0"];
- my $attachments_join = {
- table => 'attachments',
- as => $attach_table,
- extra => $extra,
- };
- # We join both the bugs and the attachments table in separately,
- # and then the join code will later combine the terms.
- my $flags_join = {
- table => 'flags',
- as => $flags_table,
- extra => ["($flags_table.attach_id = $attach_table.attach_id "
- . " OR $flags_table.attach_id IS NULL)"],
- };
-
- push(@$joins, $attachments_join, $flags_join);
-}
-
sub _days_elapsed {
my ($self, $args) = @_;
my $dbh = Bugzilla->dbh;