diff options
author | mkanat%kerio.com <> | 2005-10-07 01:45:46 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-10-07 01:45:46 +0000 |
commit | af7d21349fe822fc6517cab76b37bed3e8caeebe (patch) | |
tree | a4f6380ad76f3ec2fe0fc0cf7545189a611f7085 /Bugzilla/Group.pm | |
parent | b808272b74ab202b17964fbb64b189e4b912ec2b (diff) | |
download | bugs-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar bugs-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar.gz bugs-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar.bz2 bugs-af7d21349fe822fc6517cab76b37bed3e8caeebe.tar.xz bugs-af7d21349fe822fc6517cab76b37bed3e8caeebe.zip |
Bug 309749: Remove get_x_by_y functions from the new .pm files, in favor of object methods
Patch By André Batosti <batosti@async.com.br> r=LpSolit, a=justdave
Diffstat (limited to 'Bugzilla/Group.pm')
-rw-r--r-- | Bugzilla/Group.pm | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index 54fff489b..cc57fca69 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -124,27 +124,6 @@ sub ValidateGroupName { return $ret; } -sub get_group_controls_by_product { - my ($product_id) = @_; - my $dbh = Bugzilla->dbh; - - my $query = qq{SELECT - $columns, - group_control_map.entry, - group_control_map.membercontrol, - group_control_map.othercontrol, - group_control_map.canedit - FROM groups - LEFT JOIN group_control_map - ON groups.id = group_control_map.group_id - WHERE group_control_map.product_id = ? - AND groups.isbuggroup != 0 - ORDER BY groups.name}; - my $groups = $dbh->selectall_hashref($query, 'id', undef, - ($product_id)); - return $groups; -} - sub get_all_groups { my $dbh = Bugzilla->dbh; @@ -181,7 +160,6 @@ Bugzilla::Group - Bugzilla group class. my $is_active = $group->is_active; my $group_id = Bugzilla::Group::ValidateGroupName('admin', @users); - my $groups = Bugzilla::Group::get_group_controls_by_product(1); my @groups = Bugzilla::get_all_groups(); =head1 DESCRIPTION @@ -223,17 +201,6 @@ Group.pm represents a Bugzilla Group object. Returns: It returns the group id if successful and undef otherwise. -=item C<get_group_controls_by_product($product_id)> - - Description: Returns all group controls of a specific product. - It is encouraged to use Bugzilla::Product object - instead of directly calling this routine. - - Params: $product_id - Integer with a Bugzilla product id. - - Returns: A hash with group id as key and hash containing the - group data as value. - =item C<get_all_groups()> Description: Returns all groups available, including both |