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) {