Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2017-12-08 13:49:18 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2017-12-08 13:51:43 -0500
commit65890f7156b0201b54a8951c3288ed1d6bba053e (patch)
tree2227f950db65356266ca0011fbe20762a57d95df
parentc5e67861c96185d91b6bf4710b2fcd3eb63817dc (diff)
downloadtame-65890f7156b0201b54a8951c3288ed1d6bba053e.tar.gz
tame-65890f7156b0201b54a8951c3288ed1d6bba053e.tar.bz2
tame-65890f7156b0201b54a8951c3288ed1d6bba053e.zip
Clean up unused JS compiler code
Cruft left around from the symbol table refactoring long ago. * src/current/compiler/js.xsl (compile)[preproc:rate]: Remove template. [preproc:class]: Remove template. (compile-rates)[lv:package]: Remove template.
-rw-r--r--src/current/compiler/js.xsl41
1 files changed, 1 insertions, 40 deletions
diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl
index 11f1e26..149b7ac 100644
--- a/src/current/compiler/js.xsl
+++ b/src/current/compiler/js.xsl
@@ -2,7 +2,7 @@
<!--
Compiles rater XML into JavaScript
- Copyright (C) 2016 LoVullo Associates, Inc.
+ Copyright (C) 2016, 2017 LoVullo Associates, Inc.
This file is part of TAME.
@@ -662,24 +662,6 @@
</template>
-<template match="preproc:rate" mode="compile">
- <variable name="yields" select="@ref" />
-
- <!-- compile the lv:rate block associated with this name -->
- <apply-templates
- select="root(.)//lv:rate[ @yields=$yields ]"
- mode="compile" />
-</template>
-
-<template match="preproc:class" mode="compile">
- <variable name="as" select="@ref" />
-
- <apply-templates
- select="root(.)//lv:classify[ @as=$as ]"
- mode="compile" />
-</template>
-
-
<!--
Generate domain checks for require-param nodes
@@ -1085,27 +1067,6 @@
</template>
-<!--
- Compile lv:rate's in such an order that dependencies will be compiled first
-
- This is important to ensure that premium calculations based on other premiums
- are actually calculated after the premium that they depend on. Having an
- order-dependent document doesn't make sense with the declarative style and is
- especially confusing when including packages.
--->
-<template match="lv:package" mode="compile-rates">
- <!-- generate the rate blocks, dependencies first; does not compile classifier
- dependencies, as those will be compiled with the appropriate classifier
- -->
- <apply-templates mode="compile" select="
- ./preproc:rate-deps/preproc:flat/preproc:rate
- |
- ./preproc:rate-deps/preproc:flat/preproc:class[ @external='true' ]
- " />
-
-</template>
-
-
<!--
Generates a premium calculation