From 1ea8580a5f912c305f8ea89431b39033522c657e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 25 Jul 2009 20:04:04 +0100 Subject: Remove now-unused function pagespec_merge Now that dependencies are a list of pagespecs with an implicit "or" operation, there's no need to try to merge pagespecs under normal use. ikiwiki-transition contains the only use of the function, so move it there rather than deleting it entirely (it's used to concatenate all admins' lists of locked pages). --- IkiWiki.pm | 8 -------- 1 file changed, 8 deletions(-) (limited to 'IkiWiki.pm') diff --git a/IkiWiki.pm b/IkiWiki.pm index 8a8695768..06a0b7a2c 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1833,14 +1833,6 @@ sub add_link ($$) { unless grep { $_ eq $link } @{$links{$page}}; } -sub pagespec_merge ($$) { - my $a=shift; - my $b=shift; - - return $a if $a eq $b; - return "($a) or ($b)"; -} - sub pagespec_translate ($) { my $spec=shift; -- cgit v1.2.3