Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-07-12 15:42:53 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-07-12 15:58:39 -0400
commitdbb368ab34c43e9513e16e3ede77132d42822378 (patch)
tree0d4a42e3cfc3e3021d28cbb27a1c2c9c350505e5
parent2af0daceb320b59d13e312c6c9b65ae04e7a615b (diff)
downloadtame-dbb368ab34c43e9513e16e3ede77132d42822378.tar.gz
tame-dbb368ab34c43e9513e16e3ede77132d42822378.tar.bz2
tame-dbb368ab34c43e9513e16e3ede77132d42822378.zip
macros.xsl: Remove unnused param boolean class generation
A classification used to be generated for each param for convenience; this has been deprecated by the progui package generation (when `q:' is used). * src/current/include/preproc/macros.xsl: Remove template.
-rw-r--r--src/current/include/preproc/macros.xsl34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/current/include/preproc/macros.xsl b/src/current/include/preproc/macros.xsl
index 8d991a4..e58f247 100644
--- a/src/current/include/preproc/macros.xsl
+++ b/src/current/include/preproc/macros.xsl
@@ -434,38 +434,4 @@
</lv:rate>
</xsl:template>
-
-<!--
- Generates a classifier for each boolean param
-
- This is for convenience; a boolean can esssentially be considered its own
- classifier, so let's generate one to cut down on the amount of code.
-
- Technically not a macro, but needs to be done before preproc:expand.
-
- XXX: Get rid of me! Now unused!
--->
-<xsl:template match="lv:params[ not( @preproc:processed ) ]"
- mode="preproc:macros" priority="5">
-
- <xsl:copy>
- <xsl:attribute name="preproc:processed" select="'true'" />
- <xsl:sequence select="@*" />
-
- <xsl:apply-templates mode="preproc:macros" />
- </xsl:copy>
-
- <xsl:for-each select="lv:param[ @type='boolean' ]">
- <xsl:variable name="as" select="translate( @name, '_', '-' )" />
- <xsl:variable name="genas" select="concat( 'is-', $as )" />
-
- <!-- ensure that this name does not already exist -->
- <xsl:if test="not( /lv:*/lv:classify[ @as=$genas ] )">
- <lv:classify as="{$genas}" desc="{@desc}">
- <lv:match on="{@name}" value="TRUE" />
- </lv:classify>
- </xsl:if>
- </xsl:for-each>
-</xsl:template>
-
</xsl:stylesheet>