Skip to content

Commit 39bc103

Browse files
committed
Breaking: Removed now unused util.longNeq which was used by early static code
1 parent 28ce07d commit 39bc103

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protobufjs",
3-
"version": "6.3.2",
3+
"version": "6.4.0",
44
"description": "Protocol Buffers for JavaScript (& TypeScript).",
55
"author": "Daniel Wirtz <[email protected]>",
66
"license": "BSD-3-Clause",

src/util/runtime.js

-17
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,6 @@ util.longFromHash = function longFromHash(hash, unsigned) {
114114
return bits.toNumber(Boolean(unsigned));
115115
};
116116

117-
/**
118-
* Tests if two possibly long values are not equal.
119-
* @param {number|Long} a First value
120-
* @param {number|Long} b Second value
121-
* @returns {boolean} `true` if not equal
122-
* @deprecated Use {@link util.longNe|longNe} instead
123-
*/
124-
util.longNeq = function longNeq(a, b) {
125-
return typeof a === "number"
126-
? typeof b === "number"
127-
? a !== b
128-
: (a = util.LongBits.fromNumber(a)).lo !== b.low || a.hi !== b.high
129-
: typeof b === "number"
130-
? (b = util.LongBits.fromNumber(b)).lo !== a.low || b.hi !== a.high
131-
: a.low !== b.low || a.high !== b.high;
132-
};
133-
134117
/**
135118
* Tests if a possibily long value equals the specified low and high bits.
136119
* @param {number|string|Long} val Value to test

0 commit comments

Comments
 (0)