Bug 680678 - Sync: byteArrayToString appears more than once in util.js. r=philikon
authorRichard Newman <rnewman@mozilla.com>
Mon, 22 Aug 2011 09:15:02 -0700
changeset 77043 2e842de9564da92b7ee384eccff37942b2eb7b07
parent 77042 2a68cc330b3406aef2ccb15ccfc8fee46dbf4b40
child 77044 7df9d5dfdb75c4c9b9aeab0c473cc0a55b24e741
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilikon
bugs680678
milestone9.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 680678 - Sync: byteArrayToString appears more than once in util.js. r=philikon
services/sync/modules/util.js
--- a/services/sync/modules/util.js
+++ b/services/sync/modules/util.js
@@ -551,20 +551,16 @@ let Utils = {
     let iterations = Math.ceil(len/BLOCKSIZE);
     for (let i = 0; i < iterations; i++) {
       Tn = Utils.digestBytes(Tn + info + String.fromCharCode(i + 1), h);
       T += Tn;
     }
     return T.slice(0, len);
   },
 
-  byteArrayToString: function byteArrayToString(bytes) {
-    return [String.fromCharCode(byte) for each (byte in bytes)].join("");
-  },
-  
   /**
    * PBKDF2 implementation in Javascript.
    * 
    * The arguments to this function correspond to items in 
    * PKCS #5, v2.0 pp. 9-10 
    * 
    * P: the passphrase, an octet string:              e.g., "secret phrase"
    * S: the salt, an octet string:                    e.g., "DNXPzPpiwn"