From 0772a1fb81058a06e8e5d4e808de5d87fca2cb8c Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 2 Apr 2015 15:54:35 +0200 Subject: [PATCH] util/latex: Get rid of toUnit ( hasn't been working anyway ) --- lib/expression/node/OperatorNode.js | 7 ------- lib/util/latex.js | 8 -------- 2 files changed, 15 deletions(-) diff --git a/lib/expression/node/OperatorNode.js b/lib/expression/node/OperatorNode.js index c2d3161e0..aac79a5da 100644 --- a/lib/expression/node/OperatorNode.js +++ b/lib/expression/node/OperatorNode.js @@ -280,13 +280,6 @@ OperatorNode.prototype._toTex = function(callbacks) { case 'OperatorNode:divide': //op contains '\\frac' at this point return op + lhsTex + rhsTex; - - case 'OperatorNode:to': - rhsTex = '{' + latex.toUnit(rhs.toTex(callbacks)) + '}'; - if (parens[1]) { - rhsTex = '\\left(' + rhsTex + '\\right)'; - } - break; } return lhsTex + ' ' + op + ' ' + rhsTex; diff --git a/lib/util/latex.js b/lib/util/latex.js index 86ecd8ecf..01f81788f 100644 --- a/lib/util/latex.js +++ b/lib/util/latex.js @@ -498,11 +498,3 @@ exports.toFunction = function (node, callbacks, name) { //fallback return defaultToTex(node, callbacks, name); } - -exports.toUnit = (function() { - var _toUnit = latexToFn(units); - - return function(value, notSpaced) { - return _toUnit(value); - }; -}());