Skip to content

Commit 3ca1783

Browse files
committed
1
1 parent 8a319c1 commit 3ca1783

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

src/iceberg/test/set_snapshot_test.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
#include "iceberg/update/set_snapshot.h"
2121

22-
#include <memory>
23-
2422
#include <gmock/gmock.h>
2523
#include <gtest/gtest.h>
2624

@@ -32,7 +30,6 @@
3230

3331
namespace iceberg {
3432

35-
// Test fixture for SetSnapshot tests
3633
class SetSnapshotTest : public UpdateTestBase {
3734
protected:
3835
// Snapshot IDs from TableMetadataV2Valid.json

src/iceberg/transaction.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "iceberg/iceberg_export.h"
2727
#include "iceberg/result.h"
2828
#include "iceberg/type_fwd.h"
29-
#include "iceberg/update/set_snapshot.h"
3029

3130
namespace iceberg {
3231

@@ -86,7 +85,7 @@ class ICEBERG_EXPORT Transaction : public std::enable_shared_from_this<Transacti
8685
/// \brief Create a new UpdateLocation to update the table location and commit the
8786
/// changes.
8887
Result<std::shared_ptr<UpdateLocation>> NewUpdateLocation();
89-
88+
9089
/// \brief Create a new SetSnapshot to set the current snapshot or rollback to a
9190
/// previous snapshot and commit the changes.
9291
Result<std::shared_ptr<SetSnapshot>> NewSetSnapshot();

src/iceberg/util/snapshot_util.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ Result<std::vector<std::shared_ptr<Snapshot>>> SnapshotUtil::CurrentAncestors(
104104
Result<std::vector<std::shared_ptr<Snapshot>>> SnapshotUtil::CurrentAncestors(
105105
const TableMetadata& metadata) {
106106
ICEBERG_ASSIGN_OR_RAISE(auto current, metadata.Snapshot());
107-
108-
// Create a lookup function that uses the metadata
109107
auto lookup = [&metadata](int64_t id) -> Result<std::shared_ptr<Snapshot>> {
110108
return metadata.SnapshotById(id);
111109
};

0 commit comments

Comments
 (0)