Commit d19c2c52 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 330519: Remove unused IsInClassification() function from globals.pl - Patch…

Bug 330519: Remove unused IsInClassification() function from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=Tru a=justdave
parent c599998a
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment