From ed125888441ab7552f701e5e3ab832bc8f392924 Mon Sep 17 00:00:00 2001 From: Joe Germuska Date: Fri, 9 May 2014 14:46:24 -0500 Subject: [PATCH] remove crufty code. closes #589 --- source/js/Core/Core/VMM.Util.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/source/js/Core/Core/VMM.Util.js b/source/js/Core/Core/VMM.Util.js index e1c61b4..e51d9f1 100644 --- a/source/js/Core/Core/VMM.Util.js +++ b/source/js/Core/Core/VMM.Util.js @@ -111,20 +111,6 @@ if(typeof VMM != 'undefined' && typeof VMM.Util == 'undefined') { return out; }, - /* * Given an int or decimal, turn that into string in $xxx,xxx.xx format. - ================================================== */ - number2money: function(n, symbol, padding) { - var symbol = (symbol !== null) ? symbol : true; // add $ - var padding = (padding !== null) ? padding : false; //pad with .00 - var number = VMM.Math2.floatPrecision(n,2); // rounded correctly to two digits, if decimals passed - var formatted = this.niceNumber(number); - // no decimal and padding is enabled - if (!formatted.split(/\./g)[1] && padding) formatted = formatted + ".00"; - // add money sign - if (symbol) formatted = "$"+formatted; - return formatted; - }, - /* * Returns a word count number ================================================== */ wordCount: function(s) {