From fd575243e2c8754bc4580526de05462761c320ab Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 14 May 2023 05:51:50 +0200 Subject: SurfaceScaleUtils: Remove unused isZero(..) --- .../classes/jogamp/nativewindow/SurfaceScaleUtils.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src') diff --git a/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java b/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java index 152b189d1..4f2ff20ea 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java +++ b/src/nativewindow/classes/jogamp/nativewindow/SurfaceScaleUtils.java @@ -41,15 +41,6 @@ public class SurfaceScaleUtils { private static final float EPSILON = 1.1920929E-7f; // Float.MIN_VALUE == 1.4e-45f ; double EPSILON 2.220446049250313E-16d - /** Returns true if `abs(a) < EPSILON`, otherwise false. */ - public static boolean isZero(final float a) { - return Math.abs(a) < EPSILON; - } - /** Returns true if `isZero(f2[0]) && isZero(f2[1])`, otherwise false. */ - public static boolean isZero(final float[] f2) { - return isZero(f2[0]) && isZero(f2[1]); - } - /** Returns true if `abs(a-b) < EPSILON`, otherwise false. */ public static boolean isEqual(final float a, final float b) { return Math.abs(a-b) < EPSILON; -- cgit v1.2.3