Skip to content

Commit 45bb93c

Browse files
authored
Remove unused loggers / static fields (#121)
1 parent 6ca0b42 commit 45bb93c

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

polaris-core/src/main/java/io/polaris/core/catalog/PolarisCatalogHelpers.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@
2323
import java.util.stream.Collectors;
2424
import org.apache.iceberg.catalog.Namespace;
2525
import org.apache.iceberg.catalog.TableIdentifier;
26-
import org.slf4j.Logger;
27-
import org.slf4j.LoggerFactory;
2826

2927
/**
3028
* Holds helper methods translating between persistence-layer structs and Iceberg objects shared by
3129
* different Polaris components.
3230
*/
3331
public class PolarisCatalogHelpers {
34-
private static final Logger LOG = LoggerFactory.getLogger(PolarisCatalogHelpers.class);
35-
3632
/** Not intended for instantiation. */
3733
private PolarisCatalogHelpers() {}
3834

polaris-core/src/main/java/io/polaris/core/entity/CatalogEntity.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@
4141
import org.apache.iceberg.exceptions.BadRequestException;
4242
import org.jetbrains.annotations.NotNull;
4343
import org.jetbrains.annotations.Nullable;
44-
import org.slf4j.Logger;
45-
import org.slf4j.LoggerFactory;
4644

4745
/**
4846
* Catalog specific subclass of the {@link PolarisEntity} that handles conversion from the {@link
4947
* Catalog} model to the persistent entity model.
5048
*/
5149
public class CatalogEntity extends PolarisEntity {
52-
private static final Logger LOG = LoggerFactory.getLogger(CatalogEntity.class);
53-
54-
public static final long ROOT_CATALOG_ID = 0;
5550
public static final String CATALOG_TYPE_PROPERTY = "catalogType";
5651

5752
// Specifies the object-store base location used for all Table file locations under the

polaris-core/src/main/java/io/polaris/core/persistence/PolarisEntityManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,13 @@
3131
import java.util.function.Supplier;
3232
import org.jetbrains.annotations.NotNull;
3333
import org.jetbrains.annotations.Nullable;
34-
import org.slf4j.Logger;
35-
import org.slf4j.LoggerFactory;
3634

3735
/**
3836
* Wraps logic of handling name-caching and entity-caching against a concrete underlying entity
3937
* store while exposing methods more natural for the Catalog layer to use. Encapsulates the various
4038
* id and name resolution mechanics around PolarisEntities.
4139
*/
4240
public class PolarisEntityManager {
43-
private static final Logger LOG = LoggerFactory.getLogger(PolarisEntityManager.class);
44-
4541
private final PolarisMetaStoreManager metaStoreManager;
4642
private final Supplier<PolarisMetaStoreSession> sessionSupplier;
4743
private final EntityCache entityCache;

polaris-core/src/main/java/io/polaris/core/storage/gcp/GcpCredentialsStorageIntegration.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.io.IOException;
3131
import java.net.URI;
3232
import java.util.ArrayList;
33-
import java.util.Arrays;
3433
import java.util.EnumMap;
3534
import java.util.HashMap;
3635
import java.util.HashSet;
@@ -50,13 +49,10 @@
5049
*/
5150
public class GcpCredentialsStorageIntegration
5251
extends InMemoryStorageIntegration<GcpStorageConfigurationInfo> {
53-
public static final String TOKEN_URL = "https://sts.googleapis.com/v1/token";
5452
private final Logger LOGGER = LoggerFactory.getLogger(GcpCredentialsStorageIntegration.class);
5553

5654
private final GoogleCredentials sourceCredentials;
5755
private final HttpTransportFactory transportFactory;
58-
public static final Set<Integer> TOKEN_ENDPOINT_RETRYABLE_STATUS_CODES =
59-
new HashSet<>(Arrays.asList(500, 503, 408, 429));
6056

6157
public GcpCredentialsStorageIntegration(
6258
GoogleCredentials sourceCredentials, HttpTransportFactory transportFactory) {

0 commit comments

Comments
 (0)