From cfcb3d18808a753a90b042462d1dd71fcb7c82b5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 4 Feb 2010 15:17:21 -0500 Subject: [PATCH] remove userlink() That was dead code; changes to lockedit and recentchanges removed the last callers. --- IkiWiki.pm | 17 ----------------- 1 file changed, 17 deletions(-) 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; -- 2.26.2