From: lpsolit%gmail.com <> Date: Wed, 10 Aug 2005 08:45:50 +0000 (+0000) Subject: Bug 303803: Remove the unused get_classification_name() routine - Patch by Frédéric... X-Git-Tag: bugzilla-2.21.1~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbde642b89fbad421716d9635640c9074873ceaa;p=thirdparty%2Fbugzilla.git Bug 303803: Remove the unused get_classification_name() routine - Patch by Frédéric Buclin r=mkanat a=justdave --- diff --git a/globals.pl b/globals.pl index d4ba17004e..ed4159335f 100644 --- a/globals.pl +++ b/globals.pl @@ -688,19 +688,6 @@ sub get_classification_id { return $classification_id; } -sub get_classification_name { - my ($classification_id) = @_; - die "non-numeric classification_id '$classification_id' passed to get_classification_name" - unless ($classification_id =~ /^\d+$/); - PushGlobalSQLState(); - SendSQL("SELECT name FROM classifications WHERE id = $classification_id"); - my ($classification) = FetchSQLData(); - PopGlobalSQLState(); - return $classification; -} - - - sub get_product_id { my ($prod) = @_; PushGlobalSQLState();