summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-04-03 04:15:47 +0200
committerlpsolit%gmail.com <>2006-04-03 04:15:47 +0200
commit7619511fe905991ffde812529a09115fff1d20e8 (patch)
tree61938edb80814a457b846f632e91c0f11ede1e5e /globals.pl
parent8604641c8fbc4518952208b7325bee22bf6cfe21 (diff)
downloadbugzilla-7619511fe905991ffde812529a09115fff1d20e8.tar.gz
bugzilla-7619511fe905991ffde812529a09115fff1d20e8.tar.xz
Bug 330754: Remove AnyEntryGroups() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl27
1 files changed, 0 insertions, 27 deletions
diff --git a/globals.pl b/globals.pl
index 5d7c9e250..38791a93b 100644
--- a/globals.pl
+++ b/globals.pl
@@ -185,33 +185,6 @@ sub GetVersionTable {
$::VersionTableLoaded = 1;
}
-#
-# This function checks if there are any entry groups defined.
-# If called with no arguments, it identifies
-# entry groups for all products. If called with a product
-# id argument, it checks for entry groups associated with
-# one particular product.
-sub AnyEntryGroups {
- my $product_id = shift;
- $product_id = 0 unless ($product_id);
- return $::CachedAnyEntryGroups{$product_id}
- if defined($::CachedAnyEntryGroups{$product_id});
- my $dbh = Bugzilla->dbh;
- PushGlobalSQLState();
- my $query = "SELECT 1 FROM group_control_map WHERE entry != 0";
- $query .= " AND product_id = $product_id" if ($product_id);
- $query .= " " . $dbh->sql_limit(1);
- SendSQL($query);
- if (MoreSQLData()) {
- $::CachedAnyEntryGroups{$product_id} = MoreSQLData();
- FetchSQLData();
- PopGlobalSQLState();
- return $::CachedAnyEntryGroups{$product_id};
- } else {
- return undef;
- }
-}
-#
# This function checks if there are any default groups defined.
# If so, then groups may have to be changed when bugs move from
# one bug to another.