From 11937595687df86aa93502d2e895f747a6262c4c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 5 May 2010 20:42:56 -0400 Subject: [PATCH] remove unused indexlink function and template variable --- IkiWiki.pm | 4 ---- IkiWiki/Plugin/editpage.pm | 1 - 2 files changed, 5 deletions(-) diff --git a/IkiWiki.pm b/IkiWiki.pm index 72f416489..0da2c93c8 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1401,10 +1401,6 @@ sub filter ($$$) { return $content; } -sub indexlink () { - return "$config{wikiname}"; -} - sub check_canedit ($$$;$) { my $page=shift; my $q=shift; diff --git a/IkiWiki/Plugin/editpage.pm b/IkiWiki/Plugin/editpage.pm index 7bb6eb07c..670eedfd9 100644 --- a/IkiWiki/Plugin/editpage.pm +++ b/IkiWiki/Plugin/editpage.pm @@ -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, -- 2.26.2