This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3051e05e59640a8aa671498320c6b99b3d530b13 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Fri Apr 14 14:35:54 2023 +0200 (chores) camel-core: remove unused methods in IntrospectionSupport --- .../camel/impl/engine/IntrospectionSupport.java | 50 ---------------------- 1 file changed, 50 deletions(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java index 424f4f7822d..dd62aa6b63d 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java @@ -416,56 +416,6 @@ final class IntrospectionSupport { return false; } - static boolean setProperties( - Object target, Map<String, Object> properties, String optionPrefix, boolean allowBuilderPattern) - throws Exception { - ObjectHelper.notNull(target, "target"); - ObjectHelper.notNull(properties, "properties"); - boolean rc = false; - - for (Iterator<Map.Entry<String, Object>> it = properties.entrySet().iterator(); it.hasNext();) { - Map.Entry<String, Object> entry = it.next(); - String name = entry.getKey(); - if (name.startsWith(optionPrefix)) { - Object value = properties.get(name); - name = name.substring(optionPrefix.length()); - if (setProperty(target, name, value, allowBuilderPattern)) { - it.remove(); - rc = true; - } - } - } - - return rc; - } - - static boolean setProperties( - CamelContext context, TypeConverter typeConverter, Object target, Map<String, Object> properties) - throws Exception { - ObjectHelper.notNull(target, "target"); - ObjectHelper.notNull(properties, "properties"); - boolean rc = false; - - for (Iterator<Map.Entry<String, Object>> iter = properties.entrySet().iterator(); iter.hasNext();) { - Map.Entry<String, Object> entry = iter.next(); - if (setProperty(context, typeConverter, target, entry.getKey(), entry.getValue())) { - iter.remove(); - rc = true; - } - } - - return rc; - } - - static boolean setProperties(TypeConverter typeConverter, Object target, Map<String, Object> properties) - throws Exception { - return setProperties(null, typeConverter, target, properties); - } - - static boolean setProperties(Object target, Map<String, Object> properties) throws Exception { - return setProperties(null, target, properties); - } - /** * This method supports three modes to set a property: *