Skip to content

Commit

Permalink
Nessie: Remove dead code in NessieCatalog (#8750)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajantha-bhat authored Oct 9, 2023
1 parent 71cddb8 commit 39239a1
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions nessie/src/main/java/org/apache/iceberg/nessie/NessieCatalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -185,22 +183,6 @@ private String validateWarehouseLocation(String name, Map<String, String> 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) {
Expand Down

0 comments on commit 39239a1

Please sign in to comment.