util/latex: Get rid of toUnit ( hasn't been working anyway )

This commit is contained in:
Max Bruckner 2015-04-02 15:54:35 +02:00
parent 6b1d09f2cb
commit 0772a1fb81
2 changed files with 0 additions and 15 deletions

View File

@ -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;

View File

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