Skip to content

Commit

Permalink
remove deprecated items
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 12, 2024
1 parent 12a79fe commit f2c8852
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
13 changes: 0 additions & 13 deletions capnp/src/private/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3685,19 +3685,6 @@ impl<'a> StructBuilder<'a> {
}
}

#[deprecated(
since = "0.18.8",
note = "use `.reborrow().get_pointer_field()` instead"
)]
pub fn get_pointer_field_mut(&mut self, ptr_index: WirePointerCount) -> PointerBuilder<'_> {
PointerBuilder {
arena: self.arena,
segment_id: self.segment_id,
cap_table: self.cap_table,
pointer: unsafe { self.pointers.add(ptr_index) },
}
}

#[inline]
pub fn is_pointer_field_null(&self, ptr_index: WirePointerCount) -> bool {
unsafe { (*self.pointers.add(ptr_index)).is_null() }
Expand Down
7 changes: 0 additions & 7 deletions capnp/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,6 @@ impl SegmentLengthsBuilder {
}
}

#[deprecated(since = "0.18.6", note = "use `try_push_segment` instead")]
pub fn push_segment(&mut self, length_in_words: usize) {
self.segment_indices
.push((self.total_words, self.total_words + length_in_words));
self.total_words += length_in_words;
}

/// Pushes a new segment length. The `n`th time (starting at 0) this is called specifies the length of
/// the segment with ID `n`. If the segment overflows the total word count, then this returns
/// a MessageSizeOverflow error.
Expand Down

0 comments on commit f2c8852

Please sign in to comment.