Skip to content

Commit 1c67f10

Browse files
committed
Remove now unused ServiceTracker of PackageAdmin
Follow-up on: - #2136
1 parent 40b7821 commit 1c67f10

File tree

1 file changed

+0
-6
lines changed
  • update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator

1 file changed

+0
-6
lines changed

update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/Utils.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.osgi.framework.BundleContext;
3737
import org.osgi.framework.Filter;
3838
import org.osgi.framework.InvalidSyntaxException;
39-
import org.osgi.service.packageadmin.PackageAdmin;
4039
import org.osgi.util.tracker.ServiceTracker;
4140

4241
public class Utils {
@@ -50,7 +49,6 @@ public class Utils {
5049
// os
5150
public static boolean isWindows = System.getProperty("os.name").startsWith("Win"); //$NON-NLS-1$ //$NON-NLS-2$
5251
static FrameworkLog log;
53-
private static ServiceTracker<?, PackageAdmin> bundleTracker;
5452
private static ServiceTracker<?, Location> instanceLocation;
5553
private static ServiceTracker<?, Location> configurationLocation;
5654

@@ -124,10 +122,6 @@ public static void log(IStatus status) {
124122
* Close the services that we were listening to.
125123
*/
126124
/*package*/ static synchronized void shutdown() {
127-
if (bundleTracker != null) {
128-
bundleTracker.close();
129-
bundleTracker = null;
130-
}
131125
if (instanceLocation != null) {
132126
instanceLocation.close();
133127
instanceLocation = null;

0 commit comments

Comments
 (0)