8386698: PlatformUtil has unused fields and methods#2190
Conversation
|
👋 Welcome back mhanl! A progress list of the required criteria for merging this PR into |
|
@Maran23 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
lukostyra
left a comment
There was a problem hiding this comment.
Looks good. Tests run as per usual and these don't seem to be used anywhere.
|
|
andy-goryachev-oracle
left a comment
There was a problem hiding this comment.
Looks good. I wonder if @johanvos should also take a look at this change, just in case.
You are right! My IDE was not listing this class for whatever reason - IntelliJ seems to have problems with detecting
+1. Even though this is an internal class, I was wondering the same thing (maybe there's some custom code at Gluon or similar). Will wait until we get a response, since it's not urgent. |
johanvos
left a comment
There was a problem hiding this comment.
The removed fields do not affect the mobile ports.
|
thanks for pinging me. No harm done by removing those fields. |
|
/integrate |
When I did #2146, I touched
PlatformUtiland 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 keptisHeadless(), as it was used in a test at one point and might be needed again at some point.Moved
isAndroidright below the otherisXXXmethods.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/2190/head:pull/2190$ git checkout pull/2190Update a local copy of the PR:
$ git checkout pull/2190$ git pull https://git.openjdk.org/jfx.git pull/2190/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2190View PR using the GUI difftool:
$ git pr show -t 2190Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/2190.diff
Using Webrev
Link to Webrev Comment