remove unused code.

This commit is contained in:
Christopher Jeffrey 2013-02-25 06:07:15 -06:00
parent 49a8f59091
commit 36fa2fc1db
1 changed files with 1 additions and 17 deletions

View File

@ -919,22 +919,6 @@ Tput.prototype._parsePadding = function(code, print, done) {
})();
};
Tput.prototype.setupAliases = function(info) {
var self = this;
['bools', 'numbers', 'strings'].forEach(function(name) {
var obj = info[name];
Object.keys(obj).forEach(function(key) {
var alias = Tput.alias[key];
if (alias) {
if (!Array.isArray(alias)) alias = [alias];
alias.forEach(function(alias) {
obj[alias] = obj[key];
});
}
});
});
};
/**
* Termcap
*/
@ -1076,7 +1060,7 @@ function sprintf(src) {
, i = 0;
return src.replace(rule, function(_, flag, width, type) {
var flags = flag.split('')
var flags = (flag || '').split('')
, param = params[i++] || ''
, initial = param
, width = +width