Commit 4da345f4 authored by Tristan Cavelier's avatar Tristan Cavelier

makeBlobDigest function is useless -> deleted

parent f7f0fc82
...@@ -303,22 +303,6 @@ function uniqueJSONStringify(value, replacer) { ...@@ -303,22 +303,6 @@ function uniqueJSONStringify(value, replacer) {
} }
exports.util.uniqueJSONStringify = uniqueJSONStringify; exports.util.uniqueJSONStringify = uniqueJSONStringify;
function makeBlobDigest(blob) {
var deferred = new Deferred(), fr = new FileReader();
fr.onload = function () {
deferred.resolve('sha256-' + hex_sha256(fr.result));
};
fr.onerror = function () {
deferred.reject(); // XXX
};
fr.onprogress = function () {
deferred.notify(); // XXX
};
fr.readAsBinaryString(blob);
return deferred.promise();
}
exports.util.makeBlobDigest = makeBlobDigest;
function makeBinaryStringDigest(string) { function makeBinaryStringDigest(string) {
return 'sha256-' + hex_sha256(string); return 'sha256-' + hex_sha256(string);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment