]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 330519: Remove unused IsInClassification() function from globals.pl - Patch by...
authorlpsolit%gmail.com <>
Thu, 16 Mar 2006 05:33:34 +0000 (05:33 +0000)
committerlpsolit%gmail.com <>
Thu, 16 Mar 2006 05:33:34 +0000 (05:33 +0000)
globals.pl

index 556ea3f3e77b5430e6f6a556c4c25f0a808f8a38..018260959ea6143863326ee648cbbddb65ad4aba 100644 (file)
@@ -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).