Skip to content

Commit 528f04c

Browse files
committed
rm useless code
1 parent 2093c52 commit 528f04c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

parquet-variant/src/builder/object.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,8 @@ impl<'a, S: BuilderSpecificState> ObjectBuilder<'a, S> {
283283
(if is_large { 4 } else { 1 }) + // num_fields
284284
(num_fields * id_size as usize) + // field IDs
285285
((num_fields + 1) * offset_size as usize); // field offsets + data_size
286-
// Calculated header size becomes a hint; being wrong only risks extra allocations.
287-
// Make sure to reserve enough capacity to handle the extra bytes we'll truncate.
288-
let mut bytes_to_splice = Vec::with_capacity(header_size + 3);
289-
// let header = object_header(is_large, id_size, offset_size);
290-
// bytes_to_splice.push(header);
286+
287+
let mut bytes_to_splice = Vec::with_capacity(header_size);
291288

292289
match (offset_size, id_size) {
293290
(1, 1) => ObjectHeaderWriter::<1, 1>::write(

0 commit comments

Comments
 (0)