Skip to content

Commit 0f3e955

Browse files
jridgewelljasonLaster
authored andcommitted
Remove unused fromVLQSigned function (#402)
This is a leftover from #306.
1 parent 8cb3ee5 commit 0f3e955

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/base64-vlq.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,6 @@ function toVLQSigned(aValue) {
7272
: (aValue << 1) + 0;
7373
}
7474

75-
/**
76-
* Converts to a two-complement value from a value where the sign bit is
77-
* placed in the least significant bit. For example, as decimals:
78-
* 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
79-
* 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
80-
*/
81-
// eslint-disable-next-line no-unused-vars
82-
function fromVLQSigned(aValue) {
83-
const isNegative = (aValue & 1) === 1;
84-
const shifted = aValue >> 1;
85-
return isNegative
86-
? -shifted
87-
: shifted;
88-
}
89-
9075
/**
9176
* Returns the base 64 VLQ encoded value.
9277
*/

0 commit comments

Comments
 (0)