summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-20 02:30:23 +0200
committerlpsolit%gmail.com <>2006-06-20 02:30:23 +0200
commita97d48ec24e5e7d931bd8a0dc39c597ce758d106 (patch)
tree286ae60acc70da143f2c662a4949dd144120263d /globals.pl
parent5510427a679157e889aa1bb170e2b9254aed6c49 (diff)
downloadbugzilla-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar.gz
bugzilla-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar.xz
Bug 338793: Remove DBID_to_name() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=vladd a=justdave
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 b4c71a28e..a1e87eec2 100644
--- a/globals.pl
+++ b/globals.pl
@@ -138,28 +138,6 @@ sub GetVersionTable {
$::VersionTableLoaded = 1;
}
-sub DBID_to_name {
- my ($id) = (@_);
- return "__UNKNOWN__" if !defined $id;
- # $id should always be a positive integer
- if ($id =~ m/^([1-9][0-9]*)$/) {
- $id = $1;
- } else {
- $::cachedNameArray{$id} = "__UNKNOWN__";
- }
- if (!defined $::cachedNameArray{$id}) {
- PushGlobalSQLState();
- SendSQL("SELECT login_name FROM profiles WHERE userid = $id");
- my $r = FetchOneColumn();
- PopGlobalSQLState();
- if (!defined $r || $r eq "") {
- $r = "__UNKNOWN__";
- }
- $::cachedNameArray{$id} = $r;
- }
- return $::cachedNameArray{$id};
-}
-
# 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 {