diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-07-25 20:04:04 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-08-25 00:31:40 +0100 |
commit | 1ea8580a5f912c305f8ea89431b39033522c657e (patch) | |
tree | 4a16878cabe1033e7431cc5b93947bdd39333a8b /ikiwiki-transition | |
parent | bc6e50a075b164100d3144a13633647613a3dc8e (diff) | |
download | ikiwiki-1ea8580a5f912c305f8ea89431b39033522c657e.tar ikiwiki-1ea8580a5f912c305f8ea89431b39033522c657e.tar.gz |
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).
Diffstat (limited to 'ikiwiki-transition')
-rwxr-xr-x | ikiwiki-transition | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ikiwiki-transition b/ikiwiki-transition index 795ab31cb..8a20cf655 100755 --- a/ikiwiki-transition +++ b/ikiwiki-transition @@ -335,4 +335,14 @@ sub get_banned_users () { return @ret; } +# Used to be in IkiWiki, but only used here (to migrate admin prefs into the +# setup file) now. +sub pagespec_merge ($$) { + my $a=shift; + my $b=shift; + + return $a if $a eq $b; + return "($a) or ($b)"; +} + 1 |