diff --git a/src/lib.rs b/src/lib.rs index 052b88e..d71a9be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,25 +53,13 @@ mod udiv128; #[cfg(feature = "std")] -use std::{io, mem, ptr, slice, str}; +use std::{mem, ptr, slice, str}; #[cfg(not(feature = "std"))] use core::{mem, ptr, slice, str}; use self::mem::MaybeUninit; -/// Write integer to an `io::Write`. -#[cfg(feature = "std")] -#[inline] -pub fn write(mut wr: W, value: V) -> io::Result { - let mut buf = Buffer::new(); - let s = buf.format(value); - match wr.write_all(s.as_bytes()) { - Ok(()) => Ok(s.len()), - Err(e) => Err(e), - } -} - /// A safe API for formatting integers to text. /// /// # Example