Skip to content

Commit 05e94cc

Browse files
wypoonvanliu-tx
authored andcommitted
Core: Remove accidentally added method to TableMetadata (apache#4155)
1 parent e435bce commit 05e94cc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/src/main/java/org/apache/iceberg/TableMetadata.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,6 @@ public TableMetadata replaceCurrentSnapshot(Snapshot snapshot) {
501501
return new Builder(this).setCurrentSnapshot(snapshot).build();
502502
}
503503

504-
public TableMetadata replaceCurrentSnapshot(long snapshotId) {
505-
return new Builder(this).setCurrentSnapshot(snapshotId).build();
506-
}
507-
508504
public TableMetadata removeSnapshotsIf(Predicate<Snapshot> removeIf) {
509505
List<Snapshot> toRemove = snapshots.stream().filter(removeIf).collect(Collectors.toList());
510506
return new Builder(this).removeSnapshots(toRemove).build();

0 commit comments

Comments
 (0)