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

koushiro pushed a commit to branch remove-deprecated-list-with-version
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit cc62de6231e11646d1d71f0502f7cb7d7debbb0f
Author: koushiro <[email protected]>
AuthorDate: Fri Nov 14 13:32:14 2025 +0800

    chore: remove deprecated list_with_version
---
 core/src/raw/ops.rs          | 13 -------------
 core/src/types/capability.rs |  3 ---
 2 files changed, 16 deletions(-)

diff --git a/core/src/raw/ops.rs b/core/src/raw/ops.rs
index cc206fbd2..abd89be9e 100644
--- a/core/src/raw/ops.rs
+++ b/core/src/raw/ops.rs
@@ -181,25 +181,12 @@ impl OpList {
         0
     }
 
-    /// Change the version of this list operation
-    #[deprecated(since = "0.51.1", note = "use with_versions instead")]
-    pub fn with_version(mut self, version: bool) -> Self {
-        self.versions = version;
-        self
-    }
-
     /// Change the version of this list operation
     pub fn with_versions(mut self, versions: bool) -> Self {
         self.versions = versions;
         self
     }
 
-    /// Get the version of this list operation
-    #[deprecated(since = "0.51.1", note = "use versions instead")]
-    pub fn version(&self) -> bool {
-        self.versions
-    }
-
     /// Get the version of this list operation
     pub fn versions(&self) -> bool {
         self.versions
diff --git a/core/src/types/capability.rs b/core/src/types/capability.rs
index 4d582b6e8..89be64107 100644
--- a/core/src/types/capability.rs
+++ b/core/src/types/capability.rs
@@ -162,9 +162,6 @@ pub struct Capability {
     pub list_with_start_after: bool,
     /// Indicates if recursive listing is supported.
     pub list_with_recursive: bool,
-    /// Indicates if versions listing is supported.
-    #[deprecated(since = "0.51.1", note = "use with_versions instead")]
-    pub list_with_version: bool,
     /// Indicates if listing with versions included is supported.
     pub list_with_versions: bool,
     /// Indicates if listing with deleted files included is supported.

Reply via email to