Bug 1521658 - Remove function binaryToHex since it isn't used. r=mhowell
authorRobert Strong <robert.bugzilla@gmail.com>
Tue, 22 Jan 2019 10:00:58 -0800
changeset 514905 ce81dcaa53f5b7057b0b59d901f8a4f3412d6b87
parent 514904 d1c7d5975a884c86a3c31bdd19049878494d5572
child 514906 b9d2e3ae5a3bf7b7523ce9d9c714e825ff4c13f5
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhowell
bugs1521658
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521658 - Remove function binaryToHex since it isn't used. r=mhowell
toolkit/mozapps/update/nsUpdateService.js
--- a/toolkit/mozapps/update/nsUpdateService.js
+++ b/toolkit/mozapps/update/nsUpdateService.js
@@ -529,30 +529,16 @@ function getCanStageUpdates() {
 function LOG(string) {
   if (gLogEnabled) {
     dump("*** AUS:SVC " + string + "\n");
     Services.console.logStringMessage("AUS:SVC " + string);
   }
 }
 
 /**
- * Convert a string containing binary values to hex.
- */
-function binaryToHex(input) {
-  var result = "";
-  for (var i = 0; i < input.length; ++i) {
-    var hex = input.charCodeAt(i).toString(16);
-    if (hex.length == 1)
-      hex = "0" + hex;
-    result += hex;
-  }
-  return result;
-}
-
-/**
  * Gets the specified directory at the specified hierarchy under the
  * update root directory and creates it if it doesn't exist.
  * @param   pathArray
  *          An array of path components to locate beneath the directory
  *          specified by |key|
  * @return  nsIFile object for the location specified.
  */
 function getUpdateDirCreate(pathArray) {