This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ef302d43 Remove APIs deprecated since v 2.0.0 (#6609)
7ef302d43 is described below

commit 7ef302d431db89eb5a46a0883c40d7ccacd4dd64
Author: Piotr Findeisen <[email protected]>
AuthorDate: Fri Nov 22 15:50:23 2024 +0100

    Remove APIs deprecated since v 2.0.0 (#6609)
---
 arrow-array/src/record_batch.rs    | 9 ---------
 arrow-buffer/src/buffer/mutable.rs | 9 ---------
 2 files changed, 18 deletions(-)

diff --git a/arrow-array/src/record_batch.rs b/arrow-array/src/record_batch.rs
index 372ca63f3..7eaab24f9 100644
--- a/arrow-array/src/record_batch.rs
+++ b/arrow-array/src/record_batch.rs
@@ -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> {
diff --git a/arrow-buffer/src/buffer/mutable.rs 
b/arrow-buffer/src/buffer/mutable.rs
index 7fcbd89dd..75644c74f 100644
--- a/arrow-buffer/src/buffer/mutable.rs
+++ b/arrow-buffer/src/buffer/mutable.rs
@@ -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)) };

Reply via email to