comments: remove linkuser(), it's been integrated into preprocess() now
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 18 Dec 2008 19:57:03 +0000 (19:57 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sat, 20 Dec 2008 17:34:55 +0000 (17:34 +0000)
IkiWiki/Plugin/comments.pm

index 336ed1a823c6937b2c79b063fd8fc2aaf3209533..bd09c6b25e600a6b876433e6433520a430322da6 100644 (file)
@@ -254,27 +254,6 @@ sub linkcgi ($) {
        }
 }
 
-# FIXME: basically the same logic as recentchanges
-# returns (author URL, pretty-printed version)
-sub linkuser ($) {
-       my $user = shift;
-       my $oiduser = eval { IkiWiki::openiduser($user) };
-
-       if (defined $oiduser) {
-               return ($user, $oiduser);
-       }
-       # FIXME: it'd be good to avoid having such a link for anonymous
-       # posts
-       else {
-               return (IkiWiki::cgiurl(
-                               do => 'commenter',
-                               page => (length $config{userdir}
-                                       ? "$config{userdir}/$user"
-                                       : "$user")
-                       ), $user);
-       }
-}
-
 # Mostly cargo-culted from IkiWiki::plugin::editpage
 sub sessioncgi ($$) {
        my $cgi=shift;