summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-30 02:24:53 +0200
committerlpsolit%gmail.com <>2006-05-30 02:24:53 +0200
commitd8f36cac89e6e054e884cbf54fbe130ec7424f9e (patch)
tree1deb3f27119b5a11c292e430ca2ec9813b6a4346 /globals.pl
parent598ce63e0d2acbc3a2060fe13199742945fac342 (diff)
downloadbugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.gz
bugzilla-d8f36cac89e6e054e884cbf54fbe130ec7424f9e.tar.xz
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.pl22
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 {