tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 8e6fd7cd1fb98ea9b46be370f984715b5f1fc961
parent 4a59ae976d69bbfc6defda7cd97e7218688f76ad
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Fri, 21 Nov 2025 20:25:40 +0000

Bug 2001591 - Remove unused NS_finite function. r=xpcom-reviewers,mccr8

Probably std::isfinite does the trick everywhere now.

Differential Revision: https://phabricator.services.mozilla.com/D273557

Diffstat:
Mxpcom/ds/nsMathUtils.h | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/xpcom/ds/nsMathUtils.h b/xpcom/ds/nsMathUtils.h @@ -84,19 +84,6 @@ inline double NS_hypot(double aNum1, double aNum2) { } /** - * Check whether a floating point number is finite (not +/-infinity and not a - * NaN value). - */ -inline bool NS_finite(double aNum) { -#ifdef WIN32 - // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800. - return !!_finite(aNum); -#else - return std::isfinite(aNum); -#endif -} - -/** * Returns the result of the modulo of x by y using a floored division. * fmod(x, y) is using a truncated division. * The main difference is that the result of this method will have the sign of