From: mkanat%kerio.com <> Date: Sun, 27 Feb 2005 09:09:50 +0000 (+0000) Subject: Bug 283576: DBID_to_real_or_loginname is dead code X-Git-Tag: bugzilla-2.19.3~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4885c4563032a5c49faf667b03f70e9bddb939fb;p=thirdparty%2Fbugzilla.git Bug 283576: DBID_to_real_or_loginname is dead code Patch By Max Kanat-Alexander r=wurblzap, a=justdave --- diff --git a/globals.pl b/globals.pl index 9ec915792d..4fe0c27833 100644 --- a/globals.pl +++ b/globals.pl @@ -621,19 +621,6 @@ sub ValidatePassword { } } -sub DBID_to_real_or_loginname { - my ($id) = (@_); - PushGlobalSQLState(); - SendSQL("SELECT login_name,realname FROM profiles WHERE userid = $id"); - my ($l, $r) = FetchSQLData(); - PopGlobalSQLState(); - if (!defined $r || $r eq "") { - return $l; - } else { - return "$l ($r)"; - } -} - sub DBID_to_name { my ($id) = (@_); # $id should always be a positive integer