Remove the typedlink(tag foo) pagespec feature, which is less friendly than tagged()
authorSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 23:26:03 +0000 (00:26 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 3 Apr 2010 23:43:58 +0000 (00:43 +0100)
Plugins that introduce a link type should also introduce pagespec syntax
for it.

IkiWiki.pm

index 25e9247b2e99d81ad72929dfae8a6cd771e12893..6ea0fb3f358c1fc48551db2ea9f3af9a363b1ff6 100644 (file)
@@ -2259,17 +2259,6 @@ sub match_link ($$;@) {
        return IkiWiki::FailReason->new("$page does not link to $link$qualifier", $page => $IkiWiki::DEPEND_LINKS, "" => 1);
 }
 
-sub match_typedlink($$;@) {
-       my $page = shift;
-       my $args = shift;
-
-       if ($args =~ /^(\w+)\s+(.*)$/) {
-               return match_link($page, $2, @_, linktype => $1);
-       }
-
-       return IkiWiki::ErrorReason->new("typedlink expects e.g. 'tag *' but got: $args");
-}
-
 sub match_backlink ($$;@) {
        my $ret=match_link($_[1], $_[0], @_);
        $ret->influences($_[1] => $IkiWiki::DEPEND_LINKS);