Part 2 - Bug 1359577 - Remove code in nsUpdateService.js for platforms that we no longer support. r=mhowell

Removes no longer needed gonk isOSUpdate from the update metadata
This commit is contained in:
Robert Strong 2017-04-28 16:39:31 -07:00
parent 3095568feb
commit db3f8c112e

View File

@ -1285,7 +1285,6 @@ function Update(update) {
this._properties = {};
this._patches = [];
this.isCompleteUpdate = false;
this.isOSUpdate = false;
this.showPrompt = false;
this.showNeverForVersion = false;
this.unsupported = false;
@ -1343,8 +1342,6 @@ function Update(update) {
this.isCompleteUpdate = attr.value == "true";
} else if (attr.name == "isSecurityUpdate") {
this.isSecurityUpdate = attr.value == "true";
} else if (attr.name == "isOSUpdate") {
this.isOSUpdate = attr.value == "true";
} else if (attr.name == "showNeverForVersion") {
this.showNeverForVersion = attr.value == "true";
} else if (attr.name == "showPrompt") {
@ -1486,7 +1483,6 @@ Update.prototype = {
update.setAttribute("displayVersion", this.displayVersion);
update.setAttribute("installDate", this.installDate);
update.setAttribute("isCompleteUpdate", this.isCompleteUpdate);
update.setAttribute("isOSUpdate", this.isOSUpdate);
update.setAttribute("name", this.name);
update.setAttribute("serviceURL", this.serviceURL);
update.setAttribute("showNeverForVersion", this.showNeverForVersion);