зеркало из https://github.com/mozilla/pjs.git
Bug 383987 - Remove unused functions addRows and endsWith, patch by Jason Barnabe <jason_barnabe@fastmail.fm>, r=mano
This commit is contained in:
Родитель
e90961a1ce
Коммит
24c04aa83b
|
@ -92,14 +92,6 @@ pageInfoTreeView.prototype = {
|
|||
this.rowCountChanged(this.rows - 1, 1);
|
||||
},
|
||||
|
||||
addRows: function(rows)
|
||||
{
|
||||
var length = rows.length;
|
||||
for(var i = 0; i < length; i++)
|
||||
this.rows = this.data.push(rows[i]);
|
||||
this.rowCountChanged(this.rows - length, length);
|
||||
},
|
||||
|
||||
rowCountChanged: function(index, count)
|
||||
{
|
||||
this.tree.rowCountChanged(index, count);
|
||||
|
|
|
@ -346,10 +346,3 @@ function previousVisitCount(host, endTimeReference) {
|
|||
result.root.containerOpen = true;
|
||||
return result.root.childCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true iff the string suffix appears at the end of the string target
|
||||
*/
|
||||
function endsWith(target, suffix) {
|
||||
return target && suffix && target.substr(-1 * suffix.length) === suffix;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче