diff options
author | lpsolit%gmail.com <> | 2006-05-30 00:24:53 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-05-30 00:24:53 +0000 |
commit | d8f36cac89e6e054e884cbf54fbe130ec7424f9e (patch) | |
tree | 1deb3f27119b5a11c292e430ca2ec9813b6a4346 /globals.pl | |
parent | Fix a test failure caused by a checkin fix that I did on bug 302876. (diff) | |
download | bugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.gz bugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.bz2 bugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.zip |
Bug 337054: Remove get_component_id() and get_component_name() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/globals.pl b/globals.pl index bde05517b..9d47c6d78 100644 --- a/globals.pl +++ b/globals.pl @@ -218,28 +218,6 @@ sub get_product_name { return $prod; } -sub get_component_id { - my ($prod_id, $comp) = @_; - return undef unless ($prod_id && ($prod_id =~ /^\d+$/)); - PushGlobalSQLState(); - SendSQL("SELECT id FROM components " . - "WHERE product_id = $prod_id AND name = " . SqlQuote($comp)); - my ($comp_id) = FetchSQLData(); - PopGlobalSQLState(); - return $comp_id; -} - -sub get_component_name { - my ($comp_id) = @_; - die "non-numeric comp_id '$comp_id' passed to get_component_name" - unless ($comp_id =~ /^\d+$/); - PushGlobalSQLState(); - SendSQL("SELECT name FROM components WHERE id = $comp_id"); - my ($comp) = FetchSQLData(); - PopGlobalSQLState(); - return $comp; -} - # Returns a list of all the legal values for a field that has a # list of legal values, like rep_platform or resolution. sub get_legal_field_values { |