summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-05-22 13:34:36 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-05-22 13:34:36 -0400
commitbb5e0a1be4decfc17944f8e7306fc3041e1513ed (patch)
treed16afbf58890de20c12036bc2c4ed5aa0cfa108a
parentbe8d03cf14455a80342582e8578fdbee590f350a (diff)
downloadUXP-bb5e0a1be4decfc17944f8e7306fc3041e1513ed.tar
UXP-bb5e0a1be4decfc17944f8e7306fc3041e1513ed.tar.gz
UXP-bb5e0a1be4decfc17944f8e7306fc3041e1513ed.tar.lz
UXP-bb5e0a1be4decfc17944f8e7306fc3041e1513ed.tar.xz
UXP-bb5e0a1be4decfc17944f8e7306fc3041e1513ed.zip
Remove a stubbed telemetry function from app AUS.
-rw-r--r--toolkit/mozapps/update/nsUpdateService.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js
index a68d815aa..64eb995a2 100644
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -948,9 +948,6 @@ function handleFallbackToCompleteUpdate(update, postStaging) {
update.setProperty("patchingFailed", oldType);
}
-function pingStateAndStatusCodes(aUpdate, aStartup, aStatus) {
-}
-
/**
* Update Patch
* @param patch
@@ -1538,7 +1535,6 @@ UpdateService.prototype = {
getService(Ci.nsIUpdateManager);
var update = um.activeUpdate;
var status = readStatusFile(getUpdatesDir());
- pingStateAndStatusCodes(update, true, status);
// STATE_NONE status typically means that the update.status file is present
// but a background download error occurred.
if (status == STATE_NONE) {
@@ -2146,8 +2142,6 @@ UpdateService.prototype = {
if (!osApplyToDir) {
LOG("UpdateService:applyOsUpdate - Error: osApplyToDir is not defined" +
"in the nsIUpdate!");
- pingStateAndStatusCodes(aUpdate, false,
- STATE_FAILED + ": " + FOTA_FILE_OPERATION_ERROR);
handleUpdateFailure(aUpdate, FOTA_FILE_OPERATION_ERROR);
return;
}
@@ -2157,8 +2151,6 @@ UpdateService.prototype = {
if (!updateFile.exists()) {
LOG("UpdateService:applyOsUpdate - Error: OS update is not found at " +
updateFile.path);
- pingStateAndStatusCodes(aUpdate, false,
- STATE_FAILED + ": " + FOTA_FILE_OPERATION_ERROR);
handleUpdateFailure(aUpdate, FOTA_FILE_OPERATION_ERROR);
return;
}
@@ -2173,8 +2165,6 @@ UpdateService.prototype = {
} catch (e) {
LOG("UpdateService:applyOsUpdate - Error: Couldn't reboot into recovery" +
" to apply FOTA update " + updateFile.path);
- pingStateAndStatusCodes(aUpdate, false,
- STATE_FAILED + ": " + FOTA_RECOVERY_ERROR);
writeStatusFile(getUpdatesDir(), aUpdate.state = STATE_APPLIED);
handleUpdateFailure(aUpdate, FOTA_RECOVERY_ERROR);
}
@@ -2476,7 +2466,6 @@ UpdateManager.prototype = {
return;
}
var status = readStatusFile(getUpdatesDir());
- pingStateAndStatusCodes(update, false, status);
var parts = status.split(":");
update.state = parts[0];
if (update.state == STATE_FAILED && parts[1]) {