From 39239a19555f55e0facc0a585086791a606a4b32 Mon Sep 17 00:00:00 2001 From: Ajantha Bhat Date: Mon, 9 Oct 2023 13:08:15 +0530 Subject: [PATCH] Nessie: Remove dead code in NessieCatalog (#8750) --- .../apache/iceberg/nessie/NessieCatalog.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java b/nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java index 46c8adca3e5f..5a8d2c157236 100644 --- a/nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java +++ b/nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java @@ -32,7 +32,6 @@ import org.apache.iceberg.catalog.Namespace; import org.apache.iceberg.catalog.SupportsNamespaces; import org.apache.iceberg.catalog.TableIdentifier; -import org.apache.iceberg.common.DynMethods; import org.apache.iceberg.exceptions.NamespaceNotEmptyException; import org.apache.iceberg.exceptions.NoSuchNamespaceException; import org.apache.iceberg.hadoop.Configurable; @@ -48,7 +47,6 @@ import org.projectnessie.client.api.NessieApiV2; import org.projectnessie.client.config.NessieClientConfigSource; import org.projectnessie.client.config.NessieClientConfigSources; -import org.projectnessie.client.http.HttpClientBuilder; import org.projectnessie.model.ContentKey; import org.projectnessie.model.TableReference; import org.slf4j.Logger; @@ -185,22 +183,6 @@ private String validateWarehouseLocation(String name, Map catalo return warehouseLocation; } - private static NessieClientBuilder createNessieClientBuilder(String customBuilder) { - NessieClientBuilder clientBuilder; - if (customBuilder != null) { - try { - clientBuilder = - DynMethods.builder("builder").impl(customBuilder).build().asStatic().invoke(); - } catch (Exception e) { - throw new RuntimeException( - String.format("Failed to use custom NessieClientBuilder '%s'.", customBuilder), e); - } - } else { - clientBuilder = HttpClientBuilder.builder(); - } - return clientBuilder; - } - @Override public void close() throws IOException { if (null != closeableGroup) {