Skip to content

Remove a lot of dead code, consolidate localization code, bump dependencies#135

Merged
PhilippvK merged 13 commits intoPhilippvK:masterfrom
StenAL:features
Apr 8, 2025
Merged

Remove a lot of dead code, consolidate localization code, bump dependencies#135
PhilippvK merged 13 commits intoPhilippvK:masterfrom
StenAL:features

Conversation

@StenAL
Copy link

@StenAL StenAL commented Apr 5, 2025

This PR contains the following notable changes:

  • A lot of dead code is removed. This code is completely unused and has been already deobfuscated so it serves no value anymore.
  • Dependencies are updated to the latest available versions, including Netty 4.2.0
  • The language and locale handling is consolidated into just dealing with languages as none of the translations use locales. This enables stronger typing in a lot of the classes as the Language enum can be used instead of integer ids.

StenAL added 13 commits April 5, 2025 09:29
This is preferred to source and target as it checks for API availability
as well as syntax validity. See https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html
for more information.
AFAIK these diagrams are unused and can be removed to have less
dependencies and speed up the build.
This is the conventional way of declaring dependencies in Maven projects
. Now all dependency versions are in the root POM so subprojects always
use the same versions of plugins and libraries.
No major changes. The only notable changes are that the group id for
download-maven-plugin was changed and I fixed Mockito complaining about
using a deprecated API for strictness.
Instead of including all Netty classes in the built jar, now only the
packages that are actually used are included. This decreases the jar
size from 6.5 MB to 4.1 MB.

Also, Netty 4.2.0 deprecated NioEventLoopGroup and recommends
creating a MultiThreadIoEventLoopGroup with the Nio handler transport
factory instead.
There are no translations for different locales anyway so the code is
simpler when it only deals with Languages instead of a mix of locales
and languages.
This revealed that RoundRadioButton is unused and could be removed.
The code for these classes has already been deobfuscated so the dead
constructors can be removed.
@PhilippvK PhilippvK merged commit c88621d into PhilippvK:master Apr 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants