From 94ac02eadc920648bf32038aad365728a3a0dbc8 Mon Sep 17 00:00:00 2001 From: Ryan Mark Date: Mon, 30 Sep 2019 09:05:54 -0700 Subject: [PATCH] unused code/comments --- transforms/angle-brackets/transform.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/transforms/angle-brackets/transform.js b/transforms/angle-brackets/transform.js index 0e440bd58..bda11a461 100755 --- a/transforms/angle-brackets/transform.js +++ b/transforms/angle-brackets/transform.js @@ -254,10 +254,9 @@ function transformToAngleBracket(env, fileInfo, config) { } if (_valueType === 'PathExpression') { - _value = b.mustache(b.path(a.value)); + _value = b.mustache(a.value); } else if (_valueType === 'SubExpression') { if (a.value.hash.pairs.length > 0) { - // _value = b.mustache(a.value.path.original, a.value.params, a.value.hash); a.value.type = 'MustacheStatement'; _value = a.value; } else { @@ -488,13 +487,5 @@ function transformToAngleBracket(env, fileInfo, config) { return transformNode(node); } }, - - ElementNode(node) { - node.attributes.forEach(a => { - if (a.value && a.value.chars === '' && a.value.chars === _EMPTY_STRING_) { - a.value = b.text(_EMPTY_STRING_); - } - }); - }, }; }