From 1cbb270bdeb5e0704fd7da899cd3df6f2a361ad4 Mon Sep 17 00:00:00 2001 From: JiriOndrusek Date: Thu, 3 Oct 2024 11:48:18 +0200 Subject: [PATCH] Remove Capability capability from catalog --- .../catalog/quarkus/QuarkusRuntimeProvider.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java b/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java index 034c97065998..c575f93b5c84 100644 --- a/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java +++ b/catalog/src/main/java/org/apache/camel/catalog/quarkus/QuarkusRuntimeProvider.java @@ -20,9 +20,6 @@ import java.io.InputStream; import java.util.ArrayList; import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.TreeMap; import org.apache.camel.catalog.CamelCatalog; import org.apache.camel.catalog.RuntimeProvider; @@ -42,7 +39,6 @@ public class QuarkusRuntimeProvider implements RuntimeProvider { private static final String TRANSFORMER_DIR = "org/apache/camel/catalog/quarkus/transformers"; private static final String OTHER_DIR = "org/apache/camel/catalog/quarkus/others"; private static final String BEANS_DIR = "org/apache/camel/catalog/quarkus/beans"; - private static final String CAPABILITIES_CATALOG = "org/apache/camel/catalog/quarkus/capabilities.properties"; private static final String COMPONENTS_CATALOG = "org/apache/camel/catalog/quarkus/components.properties"; private static final String DEV_CONSOLE_CATALOG = "org/apache/camel/catalog/quarkus/dev-consoles.properties"; private static final String DATA_FORMATS_CATALOG = "org/apache/camel/catalog/quarkus/dataformats.properties"; @@ -210,16 +206,4 @@ public List findBeansNames() { } return names; } - - @SuppressWarnings({ "unchecked", "rawtypes" }) - @Override - public Map findCapabilities() { - final Properties properties = new Properties(); - try (InputStream is = getCamelCatalog().getVersionManager().getResourceAsStream(CAPABILITIES_CATALOG)) { - properties.load(is); - } catch (IOException e) { - // ignore - } - return new TreeMap<>((Map) (Map) properties); - } }