Skip to content

Remove unused internal classes - #2893

Merged
vogella merged 2 commits into
eclipse-platform:masterfrom
vogella:remove-unused-internal-classes
Sep 2, 2026
Merged

Remove unused internal classes#2893
vogella merged 2 commits into
eclipse-platform:masterfrom
vogella:remove-unused-internal-classes

Conversation

@vogella

@vogella vogella commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Removes 14 internal classes that nothing references any more. Candidates came from a dead-code scan of the platform sources and were then verified with JDT search across the aggregator workspace (platform, JDT, PDE, SWT, equinox and p2 on one build path) plus a grep for extension point registrations, so classes that are only instantiated from a plugin.xml were kept.

Two are worth calling out. org.eclipse.core.internal.content.XMLContentDescriber is an empty subclass of the API class of the same name in org.eclipse.core.runtime.content, and the content type extension registers the API class, not this one. The two Convert classes had a single reference each, and it came from an older copy of their own bundle on the build path rather than from any source.

All seven touched bundles compile locally.

vogella and others added 2 commits September 2, 2026 07:49
These 14 classes have no remaining references in the platform, JDT, PDE,
SWT, equinox or p2 sources, and none are registered from a plugin.xml.

XMLContentDescriber is an empty subclass of the API class of the same
name in org.eclipse.core.runtime.content, which is the one plugin.xml
registers. Both Convert classes are referenced only from an older copy of
their own bundle on the build path, not from any source.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

ant/org.eclipse.ant.ui/META-INF/MANIFEST.MF
runtime/bundles/org.eclipse.core.contenttype/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 63fa911051eff8afa5128226a17eb9240f3d2ed7 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Wed, 2 Sep 2026 06:05:36 +0000
Subject: [PATCH] Version bump(s) for 4.42 stream


diff --git a/ant/org.eclipse.ant.ui/META-INF/MANIFEST.MF b/ant/org.eclipse.ant.ui/META-INF/MANIFEST.MF
index 78c356a2ce..5110860093 100644
--- a/ant/org.eclipse.ant.ui/META-INF/MANIFEST.MF
+++ b/ant/org.eclipse.ant.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.ant.ui; singleton:=true
-Bundle-Version: 3.10.600.qualifier
+Bundle-Version: 3.10.700.qualifier
 Bundle-Activator: org.eclipse.ant.internal.ui.AntUIPlugin
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
diff --git a/runtime/bundles/org.eclipse.core.contenttype/META-INF/MANIFEST.MF b/runtime/bundles/org.eclipse.core.contenttype/META-INF/MANIFEST.MF
index cdc4253398..4a273249ae 100644
--- a/runtime/bundles/org.eclipse.core.contenttype/META-INF/MANIFEST.MF
+++ b/runtime/bundles/org.eclipse.core.contenttype/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.core.contenttype; singleton:=true
-Bundle-Version: 3.9.900.qualifier
+Bundle-Version: 3.9.1000.qualifier
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
 Require-Bundle: org.eclipse.equinox.preferences;bundle-version="[3.2.0,4.0.0)",
-- 
2.55.0

Further information are available in Common Build Issues - Missing version increments.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   56m 57s ⏱️ - 4m 30s
 4 765 tests ±0   4 743 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 186 runs  ±0  12 033 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit 16261e0. ± Comparison against base commit c4e2858.

@vogella
vogella merged commit 470ac3d into eclipse-platform:master Sep 2, 2026
18 checks passed
@vogella
vogella deleted the remove-unused-internal-classes branch September 2, 2026 11:48
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