We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb3ee5 commit 0f3e955Copy full SHA for 0f3e955
lib/base64-vlq.js
@@ -72,21 +72,6 @@ function toVLQSigned(aValue) {
72
: (aValue << 1) + 0;
73
}
74
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
-
90
/**
91
* Returns the base 64 VLQ encoded value.
92
*/
0 commit comments