From 7d40ea4e987a8ab94d3ea38351665a61dea650d2 Mon Sep 17 00:00:00 2001 From: Gabriel Fukushima Date: Thu, 3 Oct 2024 15:17:04 +1000 Subject: [PATCH] Remove redundant method from the Database interface (#8657) Signed-off-by: Gabriel Fukushima --- .../pegasys/teku/services/chainstorage/StorageService.java | 2 -- .../main/java/tech/pegasys/teku/storage/server/Database.java | 2 -- .../pegasys/teku/storage/server/kvstore/KvStoreDatabase.java | 3 --- .../tech/pegasys/teku/storage/server/noop/NoOpDatabase.java | 3 --- 4 files changed, 10 deletions(-) diff --git a/services/chainstorage/src/main/java/tech/pegasys/teku/services/chainstorage/StorageService.java b/services/chainstorage/src/main/java/tech/pegasys/teku/services/chainstorage/StorageService.java index 6a1e4e9bb39..3fd27928183 100644 --- a/services/chainstorage/src/main/java/tech/pegasys/teku/services/chainstorage/StorageService.java +++ b/services/chainstorage/src/main/java/tech/pegasys/teku/services/chainstorage/StorageService.java @@ -87,8 +87,6 @@ protected SafeFuture doStart() { config); database = dbFactory.createDatabase(); - database.migrate(); - final SettableLabelledGauge pruningTimingsLabelledGauge = SettableLabelledGauge.create( serviceConfig.getMetricsSystem(), diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/Database.java b/storage/src/main/java/tech/pegasys/teku/storage/server/Database.java index 06e9e6a8ea9..32e3bfd4671 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/Database.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/Database.java @@ -217,8 +217,6 @@ default Stream streamBlobSidecarKeys(final UInt64 long getNonCanonicalBlobSidecarColumnCount(); - void migrate(); - Optional getAnchor(); Optional getJustifiedCheckpoint(); diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java b/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java index e590f08b405..f3cbf613905 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/kvstore/KvStoreDatabase.java @@ -369,9 +369,6 @@ public long getNonCanonicalBlobSidecarColumnCount() { return dao.getNonCanonicalBlobSidecarColumnCount(); } - @Override - public void migrate() {} - @Override public void deleteHotBlocks(final Set blockRootsToDelete) { try (final HotUpdater updater = hotUpdater()) { diff --git a/storage/src/main/java/tech/pegasys/teku/storage/server/noop/NoOpDatabase.java b/storage/src/main/java/tech/pegasys/teku/storage/server/noop/NoOpDatabase.java index b08a1156c60..53986e88fce 100644 --- a/storage/src/main/java/tech/pegasys/teku/storage/server/noop/NoOpDatabase.java +++ b/storage/src/main/java/tech/pegasys/teku/storage/server/noop/NoOpDatabase.java @@ -265,9 +265,6 @@ public long getNonCanonicalBlobSidecarColumnCount() { return 0L; } - @Override - public void migrate() {} - @Override public Optional getAnchor() { return Optional.empty();