mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-24 18:00:45 +00:00
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
|
* Termcap
|
||||||
*/
|
*/
|
||||||
@ -1076,7 +1060,7 @@ function sprintf(src) {
|
|||||||
, i = 0;
|
, i = 0;
|
||||||
|
|
||||||
return src.replace(rule, function(_, flag, width, type) {
|
return src.replace(rule, function(_, flag, width, type) {
|
||||||
var flags = flag.split('')
|
var flags = (flag || '').split('')
|
||||||
, param = params[i++] || ''
|
, param = params[i++] || ''
|
||||||
, initial = param
|
, initial = param
|
||||||
, width = +width
|
, width = +width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user