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); - }; -}());