Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Sep 30, 2024
1 parent 38738c4 commit ac50eb6
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.quarkus.oidc.runtime;

import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
Expand All @@ -17,7 +16,6 @@ public class TenantConfigBean {
private final Map<String, TenantConfigContext> dynamicTenantsConfig;
private final TenantConfigContext defaultTenant;
private final TenantContextFactory tenantContextFactory;
private final Map<String, TenantConfigContext> unmodifiableDynamicTenants;

@FunctionalInterface
public interface TenantContextFactory {
Expand All @@ -30,7 +28,6 @@ public TenantConfigBean(
TenantContextFactory tenantContextFactory) {
this.staticTenantsConfig = Map.copyOf(staticTenantsConfig);
this.dynamicTenantsConfig = new ConcurrentHashMap<>();
this.unmodifiableDynamicTenants = Collections.unmodifiableMap(dynamicTenantsConfig);
this.defaultTenant = defaultTenant;
this.tenantContextFactory = tenantContextFactory;
}
Expand Down Expand Up @@ -65,11 +62,6 @@ public TenantConfigContext getDefaultTenant() {
return defaultTenant;
}

@SuppressWarnings("unused") // retained for ABI compatibility
public Map<String, TenantConfigContext> getDynamicTenantsConfig() {
return unmodifiableDynamicTenants;
}

public TenantConfigContext getDynamicTenant(String tenantId) {
return dynamicTenantsConfig.get(tenantId);
}
Expand Down

0 comments on commit ac50eb6

Please sign in to comment.