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

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 341c308a7db6d7d2b86ffc4f0711af8e1bfcfa16
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sun Feb 4 16:08:20 2024 +0000

    Remove unused code
---
 .../apache/catalina/startup/WebAnnotationSet.java  | 70 ----------------------
 1 file changed, 70 deletions(-)

diff --git a/java/org/apache/catalina/startup/WebAnnotationSet.java 
b/java/org/apache/catalina/startup/WebAnnotationSet.java
index a7cf7de6fc..02273443de 100644
--- a/java/org/apache/catalina/startup/WebAnnotationSet.java
+++ b/java/org/apache/catalina/startup/WebAnnotationSet.java
@@ -182,76 +182,6 @@ public class WebAnnotationSet {
                 addResource(context, resource);
             }
         }
-        /* Process EJB annotation.
-         * Ref JSR 224, equivalent to the ejb-ref or ejb-local-ref
-         * element in the deployment descriptor.
-        {
-            EJB annotation = clazz.getAnnotation(EJB.class);
-            if (annotation != null) {
-
-                if ((annotation.mappedName().length() == 0)
-                        || annotation.mappedName().equals("Local")) {
-
-                    ContextLocalEjb ejb = new ContextLocalEjb();
-
-                    ejb.setName(annotation.name());
-                    ejb.setType(annotation.beanInterface().getCanonicalName());
-                    ejb.setDescription(annotation.description());
-
-                    ejb.setHome(annotation.beanName());
-
-                    context.getNamingResources().addLocalEjb(ejb);
-
-                } else if (annotation.mappedName().equals("Remote")) {
-
-                    ContextEjb ejb = new ContextEjb();
-
-                    ejb.setName(annotation.name());
-                    ejb.setType(annotation.beanInterface().getCanonicalName());
-                    ejb.setDescription(annotation.description());
-
-                    ejb.setHome(annotation.beanName());
-
-                    context.getNamingResources().addEjb(ejb);
-
-                }
-            }
-        }
-        */
-        /* Process WebServiceRef annotation.
-         * Ref JSR 224, equivalent to the service-ref element in
-         * the deployment descriptor.
-         * The service-ref registration is not implemented
-        {
-            WebServiceRef annotation = clazz
-                    .getAnnotation(WebServiceRef.class);
-            if (annotation != null) {
-                ContextService service = new ContextService();
-
-                service.setName(annotation.name());
-                service.setWsdlfile(annotation.wsdlLocation());
-
-                service.setType(annotation.type().getCanonicalName());
-
-                if (annotation.value() == null)
-                    service.setServiceinterface(annotation.type()
-                            .getCanonicalName());
-
-                if (annotation.type().getCanonicalName().equals("Service"))
-                    service.setServiceinterface(annotation.type()
-                            .getCanonicalName());
-
-                if (annotation.value().getCanonicalName().equals("Endpoint"))
-                    service.setServiceendpoint(annotation.type()
-                            .getCanonicalName());
-
-                service.setPortlink(annotation.type().getCanonicalName());
-
-                context.getNamingResources().addService(service);
-            }
-        }
-        */
-
         /* Process DeclareRoles annotation.
          * Ref JSR 250, equivalent to the security-role element in
          * the deployment descriptor


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to