Permalink
Browse files

Removed padding. Closes #10

  • Loading branch information...
1 parent 52747b5 commit f6054dc886ebf2372e92d28735abe42f4c5b1d7c @tj tj committed Feb 3, 2012
Showing with 1 addition and 14 deletions.
  1. +1 −14 lib/debug.js
View
@@ -69,19 +69,6 @@ function color() {
return colors[prevColor++ % colors.length];
}
-/**
- * Pad the given `str` to `len`.
- *
- * @param {String} str
- * @param {String} len
- * @return {String}
- * @api private
- */
-
-function pad(str, len) {
- return Array(Math.max(len, 1)).join(' ') + str;
-}
-
/**
* Create a debugger with the given `name`.
*
@@ -106,7 +93,7 @@ function debug(name) {
fmt = ' \033[9' + c + 'm' + name + ' '
+ '\033[3' + c + 'm\033[90m'
+ fmt + '\033[3' + c + 'm'
- + ' ' + pad(ms, 40 - fmt.length) + 'ms\033[0m';
+ + ' +' + ms + 'ms\033[0m';
console.error.apply(this, arguments);
}

0 comments on commit f6054dc

Please sign in to comment.