diff options
author | Simon McVittie <smcv@debian.org> | 2010-04-04 00:26:03 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-04-04 00:43:58 +0100 |
commit | f80e1cb577f3b4ca8f525ddb257f190e481b9194 (patch) | |
tree | 5f17e2b04fae9ae1ec30f0cf4656ac2127fd471e | |
parent | ef6344144051ed70649ccbff01bcc4fce927ee2f (diff) | |
download | ikiwiki-f80e1cb577f3b4ca8f525ddb257f190e481b9194.tar ikiwiki-f80e1cb577f3b4ca8f525ddb257f190e481b9194.tar.gz |
Remove the typedlink(tag foo) pagespec feature, which is less friendly than tagged()
Plugins that introduce a link type should also introduce pagespec syntax
for it.
-rw-r--r-- | IkiWiki.pm | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 25e9247b2..6ea0fb3f3 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -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); |