core: vector/cmatch/match-* (@const@): Remove

This removes the deprecated `@const@` argument in favor of shorthand
`@value@` constants, which were introduced long ago precisely to avoid
having to define separate `@const@` parameters for all of these templates.

DEV-7145
main
Mike Gerwitz 2022-08-22 15:30:12 -04:00
parent 5ee0ddd064
commit 2fcd0b35ae
1 changed files with 1 additions and 15 deletions

View File

@ -215,25 +215,11 @@
<template name="_match-{@cmp@}_" desc="Match value {@cmp@}">
<param name="@on@" desc="Value to assert" />
<!-- pick one -->
<param name="@const@" desc="Match against constant value" />
<param name="@value@" desc="Match against variable" />
<if name="@const@">
<warning>
@const@ is deprecated; use @value@ with a #-prefix instead.
</warning>
</if>
<match on="@on@">
<dyn-node name="c:{@cmp@}">
<if name="@const@">
<c:const value="@const@" desc="Comparison" />
</if>
<unless name="@const@">
<c:value-of name="@value@" />
</unless>
<c:value-of name="@value@" />
</dyn-node>
</match>
</template>