Skip to content

Commit cae83cb

Browse files
committed
remove unused function
1 parent bc3bca7 commit cae83cb

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

crates/iceberg/src/spec/partition.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,25 +133,6 @@ impl UnboundPartitionSpec {
133133
pub fn builder() -> UnboundPartitionSpecBuilder {
134134
UnboundPartitionSpecBuilder::default()
135135
}
136-
137-
/// Create a [`PartitionSpec`] for a new table. So it don't need
138-
/// to specify the partition id for each field.
139-
pub fn create_new(self) -> PartitionSpec {
140-
PartitionSpec {
141-
spec_id: self.spec_id.unwrap_or(0),
142-
fields: self
143-
.fields
144-
.into_iter()
145-
.enumerate()
146-
.map(|(field_id, f)| PartitionField {
147-
source_id: f.source_id,
148-
field_id: f.partition_id.unwrap_or(field_id as i32),
149-
name: f.name,
150-
transform: f.transform,
151-
})
152-
.collect(),
153-
}
154-
}
155136
}
156137

157138
#[cfg(test)]

0 commit comments

Comments
 (0)