From c3b4ac33779c91584dfbe7e5de5af2a959d8ecdb Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 30 May 2022 09:04:24 +0300 Subject: [PATCH] Remove unused config class --- .../configuration/FastCachedConfigSource.java | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 core/runtime/src/main/java/io/quarkus/runtime/configuration/FastCachedConfigSource.java diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/FastCachedConfigSource.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/FastCachedConfigSource.java deleted file mode 100644 index 2a275b205ec4c..0000000000000 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/FastCachedConfigSource.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.quarkus.runtime.configuration; - -import java.util.HashMap; - -import org.eclipse.microprofile.config.spi.ConfigSource; -import org.wildfly.common.Assert; - -import io.smallrye.config.PropertiesConfigSource; - -/** - * A configuration source that copies all the keys from another configuration source and then - * drops any reference to it. Useful for handling configuration sources which have inefficient iteration - * capabilities. - */ -public final class FastCachedConfigSource extends PropertiesConfigSource { - private final String name; - - /** - * Construct a new instance. - * - * @param delegate the delegate configuration source (must not be {@code null}) - * - * @implNote The {@code delegate} configuration source is not referenced after this call. - */ - public FastCachedConfigSource(final ConfigSource delegate) { - super(new HashMap<>(Assert.checkNotNullParam("delegate", delegate.getProperties())), "ignored", delegate.getOrdinal()); - name = delegate.getName(); - } - - public String getName() { - return name; - } -}