From 858129cc82642910e6927a5b9797f2c7724f6c60 Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Mon, 20 Jun 2022 00:13:47 +0200 Subject: [PATCH] remove unused modem methods --- src/modem.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/modem.rs b/src/modem.rs index 36f4dd3..588f768 100644 --- a/src/modem.rs +++ b/src/modem.rs @@ -202,11 +202,6 @@ impl Modem { self.send_command(Command::getbear()) } - pub fn get_local_ip_addr(&mut self) -> Result<()> { - let _ = self.send_command(Command::get_local_ip_addr())?; - Ok(()) - } - pub fn connect_to_gprs_ap(&mut self, apn: &str, username: &str, password: &str)-> Result<()> { println!("init gprs ..."); let _ = self.send_command(Command::gprs_init())?; @@ -223,10 +218,6 @@ impl Modem { Ok(()) } - pub fn info(&mut self)-> Result { - self.send_command(Command::modem_info()) - } - pub fn probe(&mut self)-> Result { self.send_command(Command::probe()) } @@ -236,11 +227,6 @@ impl Modem { Ok(res.contains("+CGATT: 1")) } - pub fn ping(&mut self, domain: &str)-> Result<()> { - self.send_command(Command::ping(domain))?; - Ok(()) - } - pub fn tcp_is_ssl_enabled(&mut self) -> Result { let res = self.send_command(Command::tcp_ssl_check())?; Ok(res.contains("+CIPSSL: (1)"))