From d5ba4cae824087879a4857e20961a95da04eaebb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 4 Dec 2019 22:38:45 +0100 Subject: NEWT: Align DisplayImpl.createPointerIcon(..) behavior; PointerIconImpl.validatedHandle() shall not create native resource. Semantic cleanup for clarity and equal behavior Align DisplayImpl.createPointerIcon(..) behavior - return null handle of createPointerIconImplChecked(..) shall be accepted, no exception for neither of the two creation methods. PointerIconImpl.validatedHandle() shall not create native resource. - throws exception if handle is null (about to be used) - no native creation shall happen here. Display.PointerIcon.validate(): Removed, not used. --- src/newt/classes/com/jogamp/newt/Display.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/Display.java b/src/newt/classes/com/jogamp/newt/Display.java index d683eb9f2..de2f698c9 100644 --- a/src/newt/classes/com/jogamp/newt/Display.java +++ b/src/newt/classes/com/jogamp/newt/Display.java @@ -146,14 +146,6 @@ public abstract class Display { */ boolean isValid(); - /** - * Returns true if instance {@link #isValid()} or validation was successful, otherwise false. - *

- * Validation, i.e. recreation, is required if instance became invalid, see {@link #isValid()}. - *

- */ - boolean validate(); - /** * Destroys this instance. *

-- cgit v1.2.3