While testing new MSVC warning flags, a number of unused but initialized variables in java.desktop have been found. A lot of them can be removed. A few are needed for special build variants like (fast)debug only so they have to stay.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8395375 Changes: https://git.openjdk.org/jdk/pull/33495/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33495&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8395375 Stats: 78 lines in 26 files changed: 2 ins; 55 del; 21 mod Patch: https://git.openjdk.org/jdk/pull/33495.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33495/head:pull/33495 PR: https://git.openjdk.org/jdk/pull/33495
