remove unused indexlink function and template variable
authorJoey Hess <joey@kitenet.net>
Thu, 6 May 2010 00:42:56 +0000 (20:42 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 6 May 2010 00:42:56 +0000 (20:42 -0400)
IkiWiki.pm
IkiWiki/Plugin/editpage.pm

index 72f416489c1d267df30d5929fd0679f9598c8693..0da2c93c8e4df2731e416a053bcd1bf7f559d854 100644 (file)
@@ -1401,10 +1401,6 @@ sub filter ($$$) {
        return $content;
 }
 
-sub indexlink () {
-       return "<a href=\"$config{url}\">$config{wikiname}</a>";
-}
-
 sub check_canedit ($$$;$) {
        my $page=shift;
        my $q=shift;
index 7bb6eb07cf3cd64760c0b1011e14caa3cacea386..670eedfd97699eee7b3eca3ce112cda5944d3d09 100644 (file)
@@ -148,7 +148,6 @@ sub cgi_editpage ($$) {
        $form->field(name => "editcontent", type => "textarea", rows => 20,
                cols => 80);
        $form->tmpl_param("can_commit", $config{rcs});
-       $form->tmpl_param("indexlink", indexlink());
        $form->tmpl_param("helponformattinglink",
                htmllink($page, $page, "ikiwiki/formatting",
                        noimageinline => 1,