From: Joey Hess Date: Thu, 4 Feb 2010 20:17:21 +0000 (-0500) Subject: remove userlink() X-Git-Tag: 3.20100212~66 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/cfcb3d18808a753a90b042462d1dd71fcb7c82b5 remove userlink() That was dead code; changes to lockedit and recentchanges removed the last callers. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index b8e599928..6226824df 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1125,23 +1125,6 @@ sub openiduser ($) { return; } -sub userlink ($) { - my $user=shift; - - my $oiduser=eval { openiduser($user) }; - if (defined $oiduser) { - return "$oiduser"; - } - else { - eval q{use CGI 'escapeHTML'}; - error($@) if $@; - - return htmllink("", "", escapeHTML( - length $config{userdir} ? $config{userdir}."/".$user : $user - ), noimageinline => 1); - } -} - sub htmlize ($$$$) { my $page=shift; my $destpage=shift;