Skip to content

Commit

Permalink
Remove APIs deprecated since v 2.0.0 (#6609)
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored Nov 22, 2024
1 parent 9166791 commit 7ef302d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions arrow-array/src/record_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ pub trait RecordBatchReader: Iterator<Item = Result<RecordBatch, ArrowError>> {
/// Implementation of this trait should guarantee that all `RecordBatch`'s returned by this
/// reader should have the same schema as returned from this method.
fn schema(&self) -> SchemaRef;

/// Reads the next `RecordBatch`.
#[deprecated(
since = "2.0.0",
note = "This method is deprecated in favour of `next` from the trait Iterator."
)]
fn next_batch(&mut self) -> Result<Option<RecordBatch>, ArrowError> {
self.next().transpose()
}
}

impl<R: RecordBatchReader + ?Sized> RecordBatchReader for Box<R> {
Expand Down
9 changes: 0 additions & 9 deletions arrow-buffer/src/buffer/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,6 @@ impl MutableBuffer {
self.data.as_ptr()
}

#[deprecated(
since = "2.0.0",
note = "This method is deprecated in favour of `into` from the trait `Into`."
)]
/// Freezes this buffer and return an immutable version of it.
pub fn freeze(self) -> Buffer {
self.into_buffer()
}

#[inline]
pub(super) fn into_buffer(self) -> Buffer {
let bytes = unsafe { Bytes::new(self.data, self.len, Deallocation::Standard(self.layout)) };
Expand Down

0 comments on commit 7ef302d

Please sign in to comment.