mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Remove unused idevice function
This commit is contained in:
@@ -352,23 +352,6 @@ impl Idevice {
|
||||
}
|
||||
}
|
||||
|
||||
async fn read_until_byte(&mut self, stopper: u8) -> Result<Vec<u8>, 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
|
||||
|
||||
Reference in New Issue
Block a user