summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-16 06:33:34 +0100
committerlpsolit%gmail.com <>2006-03-16 06:33:34 +0100
commitd19c2c5203d27955941e51bf75415c88e611b7b4 (patch)
tree70cdf1766c7dfeeffce6e9c17c6e643c89281362 /globals.pl
parentc599998a026424dee27b0153b8f5fef383d58cf5 (diff)
downloadbugzilla-d19c2c5203d27955941e51bf75415c88e611b7b4.tar.gz
bugzilla-d19c2c5203d27955941e51bf75415c88e611b7b4.tar.xz
Bug 330519: Remove unused IsInClassification() function from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=Tru a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl18
1 files changed, 0 insertions, 18 deletions
diff --git a/globals.pl b/globals.pl
index 556ea3f3e..018260959 100644
--- a/globals.pl
+++ b/globals.pl
@@ -323,24 +323,6 @@ sub AnyDefaultGroups {
return $::CachedAnyDefaultGroups;
}
-sub IsInClassification {
- my ($classification,$productname) = @_;
-
- if (! Param('useclassification')) {
- return 1;
- } else {
- my $query = "SELECT classifications.name " .
- "FROM products,classifications " .
- "WHERE products.classification_id=classifications.id ";
- $query .= "AND products.name = " . SqlQuote($productname);
- PushGlobalSQLState();
- SendSQL($query);
- my ($ret) = FetchSQLData();
- PopGlobalSQLState();
- return ($ret eq $classification);
- }
-}
-
sub ValidatePassword {
# Determines whether or not a password is valid (i.e. meets Bugzilla's
# requirements for length and content).