summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:51:31 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:55:32 -0500
commit73f0011836e992c74bd7ac71fae2d149844855ad (patch)
tree52ea288bd8f92274cb42959f96b04cb3c2987649
parent53be24789e0081f948ba719448989f6a12d03b30 (diff)
remove unnecessary returns
check_canremove/canrename is called only for its side effect (of failing if removal is not allowed), its return value is never used and returning something makes that unclear
-rw-r--r--IkiWiki/Plugin/remove.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm
index f62bfb1d7..3f1704846 100644
--- a/IkiWiki/Plugin/remove.pm
+++ b/IkiWiki/Plugin/remove.pm
@@ -73,7 +73,6 @@ sub check_canremove ($$$) {
}
}
});
- return $canremove;
}
sub formbuilder_setup (@) {