From d19c2c5203d27955941e51bf75415c88e611b7b4 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 16 Mar 2006 05:33:34 +0000 Subject: [PATCH] =?utf8?q?Bug=20330519:=20Remove=20unused=20IsInClassifica?= =?utf8?q?tion()=20function=20from=20globals.pl=20-=20Patch=20by=20Fr?= =?utf8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3DTru=20a=3D?= =?utf8?q?justdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- globals.pl | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/globals.pl b/globals.pl index 556ea3f3e7..018260959e 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). -- 2.47.3