mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Remove unused function in _test.js
This commit is contained in:
parent
13d403b334
commit
444b765dfc
2 changed files with 0 additions and 22 deletions
|
@ -65,17 +65,6 @@ function assertEqualArrayBuffers(ab1, ab2) {
|
|||
assert.deepEqual(new Uint8Array(ab1), new Uint8Array(ab2));
|
||||
};
|
||||
|
||||
function arrayBufferToHex(buffer) {
|
||||
var array = new Uint8Array(buffer);
|
||||
var s = '';
|
||||
for (var i in array) {
|
||||
var h = array[i].toString(16);
|
||||
if (h.length < 2) { s += '0'; }
|
||||
s += h;
|
||||
}
|
||||
return s;
|
||||
};
|
||||
|
||||
function hexToArrayBuffer(str) {
|
||||
var ret = new ArrayBuffer(str.length / 2);
|
||||
var array = new Uint8Array(ret);
|
||||
|
|
11
test/test.js
11
test/test.js
|
@ -10939,17 +10939,6 @@ function assertEqualArrayBuffers(ab1, ab2) {
|
|||
assert.deepEqual(new Uint8Array(ab1), new Uint8Array(ab2));
|
||||
};
|
||||
|
||||
function arrayBufferToHex(buffer) {
|
||||
var array = new Uint8Array(buffer);
|
||||
var s = '';
|
||||
for (var i in array) {
|
||||
var h = array[i].toString(16);
|
||||
if (h.length < 2) { s += '0'; }
|
||||
s += h;
|
||||
}
|
||||
return s;
|
||||
};
|
||||
|
||||
function hexToArrayBuffer(str) {
|
||||
var ret = new ArrayBuffer(str.length / 2);
|
||||
var array = new Uint8Array(ret);
|
||||
|
|
Loading…
Reference in a new issue