diff options
author | Simon McVittie <smcv@debian.org> | 2010-04-03 13:49:20 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-04-03 14:28:21 +0100 |
commit | 75fd08046548940c443c46bcdf9a5b0b6968b175 (patch) | |
tree | d30b014a54fbd9944feacdd86f6d12331a0dd3d6 | |
parent | a875ee8be702bd4575e009dc652015c1157c7c2e (diff) | |
download | ikiwiki-75fd08046548940c443c46bcdf9a5b0b6968b175.tar ikiwiki-75fd08046548940c443c46bcdf9a5b0b6968b175.tar.gz |
Remove support for check_cmp_foo (pre-sort checks)
-rw-r--r-- | IkiWiki.pm | 4 | ||||
-rw-r--r-- | doc/plugins/write.mdwn | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 8f36f5818..7547f1751 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1973,10 +1973,6 @@ sub cmpspec_translate ($) { } if (exists $IkiWiki::PageSpec::{"cmp_$word"}) { - if (exists $IkiWiki::PageSpec::{"check_cmp_$word"}) { - $IkiWiki::PageSpec::{"check_cmp_$word"}->($params); - } - if (defined $params) { push @data, $params; $code .= "IkiWiki::PageSpec::cmp_$word(\@_, \$data[$#data])"; diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index de2b47015..06c8f8e44 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -1128,11 +1128,6 @@ is greater, or zero if they are considered equal. It may also raise an error using `error`, for instance if it needs a parameter but one isn't provided. -You can also define a function called `check_cmp_foo` in the same package. -If you do, it will be called while preparing to sort by `foo` or `foo(bar)`, -with argument `undef` or `"bar"` respectively; it may raise an error using -`error`, if sorting like that isn't going to work. - ### Setup plugins The ikiwiki setup file is loaded using a pluggable mechanism. If you look |