diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index 5ff3006..4b5ea4a 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -352,23 +352,6 @@ impl Idevice { } } - async fn read_until_byte(&mut self, stopper: u8) -> Result, IdeviceError> { - if let Some(socket) = &mut self.socket { - let mut buf = Vec::new(); - - loop { - let b = socket.read_u8().await?; - if b == stopper { - return Ok(buf); - } else { - buf.push(b); - } - } - } else { - Err(IdeviceError::NoEstablishedConnection) - } - } - /// Upgrades the connection to TLS using device pairing credentials /// /// # Arguments