Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
b67de356
Commit
b67de356
authored
Aug 29, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makeBlobDigest function is useless -> deleted
parent
6a070597
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
src/jio/core/util.js
src/jio/core/util.js
+0
-16
No files found.
src/jio/core/util.js
View file @
b67de356
...
...
@@ -303,22 +303,6 @@ function uniqueJSONStringify(value, replacer) {
}
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
)
{
return
'
sha256-
'
+
hex_sha256
(
string
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment