From 39bc1031bb502f8b677b3736dd283736ea4d92c1 Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Mon, 2 Jan 2017 01:24:13 +0100 Subject: [PATCH] Breaking: Removed now unused util.longNeq which was used by early static code --- package.json | 2 +- src/util/runtime.js | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/package.json b/package.json index fa7b7a0b1..2d12b9cf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "protobufjs", - "version": "6.3.2", + "version": "6.4.0", "description": "Protocol Buffers for JavaScript (& TypeScript).", "author": "Daniel Wirtz ", "license": "BSD-3-Clause", diff --git a/src/util/runtime.js b/src/util/runtime.js index c8d2ed01c..2225cef51 100644 --- a/src/util/runtime.js +++ b/src/util/runtime.js @@ -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