summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 01:24:01 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 21:14:05 +0000
commit0a69c7ed56ea244c62319c7a95ba7cfac9696e27 (patch)
tree5a88b0bc58655bf35f3e58898501dac587a0dd0f /IkiWiki
parent44a7d77a301a1f219c99f3d861f0bce43cd779cf (diff)
comments: Remove some dead code
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 46f71e2e7..eb915b813 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -168,15 +168,6 @@ sub checkconfig () { #{{{
unless defined $config{comments_pagename};
} #}}}
-# FIXME: logic taken from editpage, should be common code?
-sub getcgiuser ($) { # {{{
- my $session = shift;
- my $user = $session->param('name');
- $user = $ENV{REMOTE_ADDR} unless defined $user;
- debug("getcgiuser() -> $user");
- return $user;
-} # }}}
-
# This is exactly the same as recentchanges_link :-(
sub linkcgi ($) { #{{{
my $cgi=shift;
@@ -332,8 +323,6 @@ sub sessioncgi ($$) { #{{{
IkiWiki::check_canedit($page . "[postcomment]", $cgi, $session);
- my ($authorurl, $author) = linkuser(getcgiuser($session));
-
my $editcontent = $form->field('editcontent') || '';
$editcontent =~ s/\r\n/\n/g;
$editcontent =~ s/\r/\n/g;
@@ -398,8 +387,6 @@ sub sessioncgi ($$) { #{{{
$template->param(content => $preview);
$template->param(title => $form->field('subject'));
$template->param(ctime => displaytime(time));
- $template->param(author => $author);
- $template->param(authorurl => $authorurl);
$form->tmpl_param(page_preview => $template->output);
}