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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new e8683af  Removed unusued code
e8683af is described below

commit e8683af5f22f064f81d0ef99c2787cae01794976
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon May 18 19:49:35 2020 +0200

    Removed unusued code
---
 .../src/main/java/org/apache/camel/language/bean/BeanExpression.java  | 4 ----
 1 file changed, 4 deletions(-)

diff --git 
a/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanExpression.java
 
b/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanExpression.java
index 8bc87cf..e404d8d 100644
--- 
a/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanExpression.java
+++ 
b/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanExpression.java
@@ -279,10 +279,6 @@ public class BeanExpression implements Expression, 
Predicate, AfterPropertiesCon
         if (bean != null) {
             holder = new ConstantBeanHolder(bean, context);
         } else if (beanName != null) {
-            // it may refer to a type such as when used with bean language
-            if (context.getRegistry().lookupByName(beanName) == null) {
-                // TODO: ?????
-            }
             holder = new RegistryBean(context, beanName);
         } else if (type != null) {
             holder = new ConstantTypeBeanHolder(type, context);

Reply via email to