Skip to content

Remove the unused PngDeflater - #3488

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:swt-perf-improvements
Open

Remove the unused PngDeflater#3488
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:swt-perf-improvements

Conversation

@vogella

@vogella vogella commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

PngEncoder has compressed image data with java.util.zip.DeflaterOutputStream for a long time, which left PngDeflater without a single caller anywhere in the repository. It is 621 lines of hand-written deflate implementation that nothing reaches.

The class was a partial Java port of PuTTY's sshzlib.c, so the PuTTY licence section in the three about.html files described code that would no longer be shipped. That section is removed along with it. Please give the legal file changes a careful look; the removed block is byte-identical in all three files and covered nothing else.

After the change no reference to PngDeflater or PuTTY remains anywhere in the tree.

Note: the branch is still named swt-perf-improvements because it originally carried image codec optimizations too. Those have been dropped from this PR and will come separately.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Test Results

  212 files  ±0    212 suites  ±0   27m 41s ⏱️ -5s
4 894 tests ±0  4 870 ✅ ±0   24 💤 ±0  0 ❌ ±0 
7 065 runs  ±0  6 897 ✅ ±0  168 💤 ±0  0 ❌ ±0 

Results for commit 9130c44. ± Comparison against base commit 4755f49.

♻️ This comment has been updated with latest results.

@vogella
vogella force-pushed the swt-perf-improvements branch from daf16a7 to 7ef748b Compare August 6, 2026 14:23
PngEncoder has compressed image data with java.util.zip.DeflaterOutputStream
for a long time, which left PngDeflater without a single caller anywhere in
the repository.

The class was a partial Java port of PuTTY's sshzlib.c, so the PuTTY licence
section in the three about.html files covered code that is no longer shipped.
That section goes away with it.
@vogella
vogella force-pushed the swt-perf-improvements branch from 7ef748b to 9130c44 Compare August 6, 2026 14:29
@vogella vogella changed the title Speed up the pure-Java image codecs Remove the unused PngDeflater Aug 6, 2026
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.

1 participant