remove unused code.
This commit is contained in:
parent
49a8f59091
commit
36fa2fc1db
18
lib/tput.js
18
lib/tput.js
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue