Remove support for check_cmp_foo (pre-sort checks)
authorSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 12:49:20 +0000 (13:49 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 13:28:21 +0000 (14:28 +0100)
IkiWiki.pm
doc/plugins/write.mdwn

index 8f36f5818c641424b9ba060d77b714f618ad11cb..7547f175115753abfede918cdaf10c166a9c7c82 100644 (file)
@@ -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])";
index de2b47015a6f5e8b4ce9a79178ef2a22edca76f4..06c8f8e44af6842d00b301de4c805d9c68fee47d 100644 (file)
@@ -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