Skip to content

Commit

Permalink
Breaking: Removed now unused util.longNeq which was used by early sta…
Browse files Browse the repository at this point in the history
…tic code
  • Loading branch information
dcodeIO committed Jan 2, 2017
1 parent 28ce07d commit 39bc103
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protobufjs",
"version": "6.3.2",
"version": "6.4.0",
"description": "Protocol Buffers for JavaScript (& TypeScript).",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
"license": "BSD-3-Clause",
Expand Down
17 changes: 0 additions & 17 deletions src/util/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,6 @@ util.longFromHash = function longFromHash(hash, unsigned) {
return bits.toNumber(Boolean(unsigned));
};

/**
* Tests if two possibly long values are not equal.
* @param {number|Long} a First value
* @param {number|Long} b Second value
* @returns {boolean} `true` if not equal
* @deprecated Use {@link util.longNe|longNe} instead
*/
util.longNeq = function longNeq(a, b) {
return typeof a === "number"
? typeof b === "number"
? a !== b
: (a = util.LongBits.fromNumber(a)).lo !== b.low || a.hi !== b.high
: typeof b === "number"
? (b = util.LongBits.fromNumber(b)).lo !== a.low || b.hi !== a.high
: a.low !== b.low || a.high !== b.high;
};

/**
* Tests if a possibily long value equals the specified low and high bits.
* @param {number|string|Long} val Value to test
Expand Down

0 comments on commit 39bc103

Please sign in to comment.