This is an automated email from the ASF dual-hosted git repository.
dheres pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new a453c84b76 lint: remove unused function (fix clippy (#9178)
a453c84b76 is described below
commit a453c84b7642122841cdcd300f33836140c22d5c
Author: Raz Luvaton <[email protected]>
AuthorDate: Wed Jan 14 22:55:48 2026 +0200
lint: remove unused function (fix clippy (#9178)
# Which issue does this PR close?
N/A
# Rationale for this change
main fail on this
# What changes are included in this PR?
remove unused function
# Are these changes tested?
Existing tests
# Are there any user-facing changes?
No, although it was `pub` it was never exported, hence the lint error
---
arrow-row/src/variable.rs | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arrow-row/src/variable.rs b/arrow-row/src/variable.rs
index 1c1df00528..3a53246239 100644
--- a/arrow-row/src/variable.rs
+++ b/arrow-row/src/variable.rs
@@ -45,12 +45,6 @@ pub const EMPTY_SENTINEL: u8 = 1;
/// Indicates a non-empty string
pub const NON_EMPTY_SENTINEL: u8 = 2;
-/// Returns the length of the encoded representation of a byte array,
including the null byte
-#[inline]
-pub fn encoded_len(a: Option<&[u8]>) -> usize {
- padded_length(a.map(|x| x.len()))
-}
-
/// Returns the padded length of the encoded length of the given length
#[inline]
pub fn padded_length(a: Option<usize>) -> usize {