Bug 1191579 - Remove useless getAll() implementation in Webapps.jsm

This commit is contained in:
Fabrice Desré 2015-08-06 07:43:59 -07:00
parent f2074950f0
commit f2be102242

View File

@ -4335,27 +4335,6 @@ this.DOMApplicationRegistry = {
}); });
}, },
getAll: function(aCallback) {
debug("getAll");
let apps = [];
let tmp = [];
for (let id in this.webapps) {
let app = AppsUtils.cloneAppObject(this.webapps[id]);
if (!this._isLaunchable(app))
continue;
apps.push(app);
tmp.push({ id: id });
}
this._readManifests(tmp).then((aResult) => {
for (let i = 0; i < aResult.length; i++)
apps[i].manifest = aResult[i].manifest;
aCallback(apps);
});
},
/* Check if |data| is actually a receipt */ /* Check if |data| is actually a receipt */
isReceipt: function(data) { isReceipt: function(data) {
try { try {