Commit 4885c456 authored by mkanat%kerio.com's avatar mkanat%kerio.com

Bug 283576: DBID_to_real_or_loginname is dead code

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=wurblzap, a=justdave
parent 1355d45b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment