Permalink
Browse files

Breaking: Removed now unused util.longNeq which was used by early sta…

…tic code
  • Loading branch information...
dcodeIO committed Jan 2, 2017
1 parent 28ce07d commit 39bc1031bb502f8b677b3736dd283736ea4d92c1
Showing with 1 addition and 18 deletions.
  1. +1 −1 package.json
  2. +0 −17 src/util/runtime.js
@@ -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",
@@ -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

0 comments on commit 39bc103

Please sign in to comment.