Skip to content

Remove unused WeakRefList - #2858

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:remove-unused-weakreflist
Open

Remove unused WeakRefList#2858
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:remove-unused-weakreflist

Conversation

@vogella

@vogella vogella commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

WeakRefList holds weak references to injected objects so the list itself does not keep them alive. It arrived with bug 295880 and its only client was ContextInjector, which stopped using it in 2b16cac "Bug 304586 - Injected methods only react to changes to method arguments" on 2010-03-03. Nothing has referenced it in the roughly sixteen years since, so this drops 80 lines of dead code.

The package is exported with x-friends naming org.eclipse.e4.core.contexts and org.eclipse.e4.ui.workbench. I checked both, the former here and the latter in eclipse.platform.ui, and neither imports the class, so the export needs no change and no API is affected.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   58m 44s ⏱️ -10s
 4 707 tests ±0   4 684 ✅  - 1   22 💤 ±0  1 ❌ +1 
12 012 runs  ±0  11 858 ✅  - 1  153 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit a662063. ± Comparison against base commit 1cc9ae4.

♻️ This comment has been updated with latest results.

WeakRefList holds weak references to injected objects so that the list does
not keep them alive. It arrived with bug 295880 and its only client was
ContextInjector, which stopped using it in 2b16cac "Bug 304586 - Injected
methods only react to changes to method arguments" on 2010-03-03. Nothing has
referenced it since.

The package is exported with x-friends naming org.eclipse.e4.core.contexts and
org.eclipse.e4.ui.workbench. Neither imports the class, so the export needs no
change and no API is affected.
@vogella
vogella force-pushed the remove-unused-weakreflist branch from a8c9d9b to a662063 Compare August 7, 2026 12:05
@vogella
vogella marked this pull request as ready for review August 7, 2026 12:05
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