You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2022/01/01 09:33:22 UTC

[felix-dev] branch master updated: Remove unused code

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git


The following commit(s) were added to refs/heads/master by this push:
     new 80c5bf6  Remove unused code
80c5bf6 is described below

commit 80c5bf6c74cdfd47d29e974c84e62a8ce4a434cf
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Sat Jan 1 10:33:12 2022 +0100

    Remove unused code
---
 .../http/base/internal/runtime/ListenerInfo.java   | 24 ----------------------
 1 file changed, 24 deletions(-)

diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/runtime/ListenerInfo.java b/http/base/src/main/java/org/apache/felix/http/base/internal/runtime/ListenerInfo.java
index 668a935..7611f48 100644
--- a/http/base/src/main/java/org/apache/felix/http/base/internal/runtime/ListenerInfo.java
+++ b/http/base/src/main/java/org/apache/felix/http/base/internal/runtime/ListenerInfo.java
@@ -76,30 +76,6 @@ public class ListenerInfo extends WhiteboardServiceInfo<EventListener>
         this.types = names.toArray(new String[names.size()]);
     }
 
-    /**
-     * Constructor for Apache Felix proprietary listener support
-     * @param ref The service reference
-     * @param marker Just a marker parameter to distinguish from other constructor
-     */
-    public ListenerInfo(final ServiceReference<EventListener> ref, final boolean marker)
-    {
-        super(ref);
-        this.enabled = true;
-        final String[] objectClass = (String[])ref.getProperty(Constants.OBJECTCLASS);
-        final Set<String> names = new HashSet<String>();
-        for(final String name : objectClass)
-        {
-            if ( ALLOWED_INTERFACES.contains(name) )
-            {
-                names.add(name);
-            }
-        }
-        // remove interfaces not supported by Felix whiteboard
-        names.remove(HttpSessionIdListener.class.getName());
-        names.remove(ServletContextListener.class.getName());
-        this.types = names.toArray(new String[names.size()]);
-    }
-
     @Override
     public boolean isValid()
     {