Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-07-18 10:06:34 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-07-18 10:06:34 -0400
commit666b9d6a978afc1a0b76a9080a671f327f94b89b (patch)
treefd3210feff96dd3e451ba236507a6216fe1a9ce6
parent52809c5148015fb96ea0d11b0c4c460a412b3b15 (diff)
downloadtame-666b9d6a978afc1a0b76a9080a671f327f94b89b.tar.gz
tame-666b9d6a978afc1a0b76a9080a671f327f94b89b.tar.bz2
tame-666b9d6a978afc1a0b76a9080a671f327f94b89b.zip
Remove broken calc debug worksheet predicates
-rw-r--r--src/current/compiler/js-calc.xsl27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/current/compiler/js-calc.xsl b/src/current/compiler/js-calc.xsl
index 438ea57..e3f91ae 100644
--- a/src/current/compiler/js-calc.xsl
+++ b/src/current/compiler/js-calc.xsl
@@ -61,36 +61,13 @@
<template match="c:*" mode="compile" priority="1">
- <variable name="debugval">
- <if test="
- ( $calcc-debug = 'yes' )
- or ( //w:worksheet//w:display/@name = @generates )
- or (
- (
- local-name() = 'case'
- or ./c:index
- )
- and //w:worksheet//w:display/@name = ancestor::c:*/@generates
- )
- ">
-
- <text>yes</text>
- </if>
- </variable>
-
- <!-- should we force debugging? TODO: decouple from lv namespace -->
- <variable name="debug-force" select="
- ancestor::lv:*/@yields =
- root(.)//calc-compiler:force-debug/calc-compiler:ref/@name
- " />
-
- <if test="$debugval = 'yes' or $debug-force">
+ <if test="$calcc-debug = 'yes'">
<text>( function() { var result = </text>
</if>
<apply-templates select="." mode="compile-pre" />
- <if test="$debugval = 'yes' or $debug-force">
+ <if test="$calcc-debug = 'yes'">
<text>; </text>
<text>/*!+*/( debug['</text>
<value-of select="@_id" />