On Tue, 16 Jun 2026 06:14:30 GMT, Marius Hanl <[email protected]> wrote:

> When I did https://github.com/openjdk/jfx/pull/2146, I touched `PlatformUtil` 
> and saw that some methods and fields are unused and will probably never be 
> used.
> 
> Example:
> - `isWinVistaOrLater()`
> - `useGLES2()`
> 
> So I removed them. Also checked that they are not called by native code.
> ~I kept `isHeadless()`, as it was used in a test at one point and might be 
> needed again at some point.~
> Moved `isAndroid` right below the other `isXXX` methods.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: b932758a
Author:    Marius Hanl <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/b932758acfecc141329d01e400c23bd7c78f2f1f
Stats:     69 lines in 1 file changed: 4 ins; 65 del; 0 mod

8386698: PlatformUtil has unused fields and methods

Reviewed-by: lkostyra, angorya, jvos

-------------

PR: https://git.openjdk.org/jfx/pull/2190

Reply via email to