rust: remove unused ascii bindings
@@ -25,17 +25,6 @@ pub extern "C" fn rust_util_zero(mut dst: BytesMut) {
util::zero(dst.as_mut())
}
-#[no_mangle]
-pub extern "C" fn rust_util_is_printable_ascii_bytes(bytes: Bytes) -> bool {
- util::ascii::is_printable_ascii(bytes, false)
-}
-
-#[no_mangle]
-pub extern "C" fn rust_util_is_printable_ascii(cstr: CStr) -> bool {
- let s: &str = cstr.as_ref();
- util::ascii::is_printable_ascii(s, false)
-}
-
#[no_mangle]
pub extern "C" fn rust_util_validate_name(cstr: CStr, max_len: size_t) -> bool {
let s: &str = cstr.as_ref();
@@ -383,15 +372,6 @@ mod tests {
let _ = write!(&mut cstr_mut, "test foo ");
}
- #[test]
- fn test_is_printable_ascii_bytes() {
- let buf = b"foo";
- assert!(rust_util_is_printable_ascii_bytes(rust_util_bytes(
- buf.as_ptr(),
- buf.len()
- )));
- }
-
#[test]
fn u8_to_hexing() {
let buf = [1u8, 2, 3, 14, 15, 255, 1];
