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 75732 2e842de9564da92b7ee384eccff37942b2eb7b07
parent 75731 2a68cc330b3406aef2ccb15ccfc8fee46dbf4b40
child 75733 7df9d5dfdb75c4c9b9aeab0c473cc0a55b24e741
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersphilikon
bugs680678
milestone9.0a1
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"