Skip to content

Remove unused org.eclipse.team.internal.core.streams - #2857

Draft
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:remove-unused-team-core-streams
Draft

Remove unused org.eclipse.team.internal.core.streams#2857
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:remove-unused-team-core-streams

Conversation

@vogella

@vogella vogella commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Every caller of org.eclipse.team.internal.core.streams lived in org.eclipse.team.cvs.core or org.eclipse.team.cvs.ssh2, and all of them disappeared with 7592b18 "Retire CVS from master" in 2022. The package had been moved into org.eclipse.team.core by 68ca795 precisely so the CVS core bundle and the ssh fragments could share one copy of the stream filters, so serving CVS was its only reason to live here, and no non-CVS caller ever existed outside the package's own test.

The eight classes form a closed cluster, so the whole package goes: the five orphaned directly by the CVS removal, PollingInputStream which only SizeConstrainedInputStream used, and the two line-delimiter filters whose only remaining client was StreamTests. That test is removed with them, together with its entry in AllTeamTests, the x-friends export and five message keys nothing references any more. This drops about 1,200 lines.

Removing the export is not an API change: the package was exported only via x-friends, naming the three deleted CVS bundles plus org.eclipse.team.ui and org.eclipse.team.tests.core, and neither of the latter two imports it.

Fixes #2856

Every caller of this package lived in org.eclipse.team.cvs.core or
org.eclipse.team.cvs.ssh2, and all of them disappeared with 7592b18
"Retire CVS from master". The package was moved into org.eclipse.team.core by
68ca795 precisely so the CVS core bundle and the ssh fragments could share
one copy of the stream filters, so serving CVS was its only reason to live
here. No non-CVS caller ever existed outside the package's own test.

The eight stream classes form a closed cluster: the five orphaned by CVS plus
PollingInputStream, which only SizeConstrainedInputStream used, and the two
line-delimiter filters, whose only remaining client was StreamTests. That test
goes away with them, along with its entry in AllTeamTests, the x-friends export
of the package and the five message keys nothing references any more.

The package was exported only via x-friends, naming the three deleted CVS
bundles plus org.eclipse.team.ui and org.eclipse.team.tests.core, neither of
which imports it. Removing it is therefore not an API change.

Fixes eclipse-platform#2856
@iloveeclipse

Copy link
Copy Markdown
Member

Ideally in 4.42, removing just before 4.41 M3 is too risky for downstream.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   56m 18s ⏱️ - 1m 24s
 4 703 tests  - 2   4 681 ✅  - 2   22 💤 ±0  0 ❌ ±0 
12 000 runs   - 6  11 847 ✅  - 6  153 💤 ±0  0 ❌ ±0 

Results for commit 8f5dac9. ± Comparison against base commit 7763306.

This pull request removes 2 tests.
org.eclipse.team.tests.core.StreamTests ‑ testCRLFtoLFInputStream
org.eclipse.team.tests.core.StreamTests ‑ testLFtoCRLFInputStream

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.

Remove unused org.eclipse.team.internal.core.streams

2 participants