mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
util/latex: Get rid of toUnit ( hasn't been working anyway )
This commit is contained in:
parent
6b1d09f2cb
commit
0772a1fb81
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
};
|
||||
}());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user