This commit is contained in:
rustdesk
2022-01-15 02:16:00 +08:00
parent 6fe4344cb0
commit d069b73303
9 changed files with 29 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ use hbb_common::{
anyhow::bail,
compress::{compress as compress_func, decompress},
config::{Config, COMPRESS_LEVEL, RENDEZVOUS_TIMEOUT},
log,
get_version_number, log,
message_proto::*,
protobuf::Message as _,
protobuf::ProtobufEnum,
@@ -413,14 +413,6 @@ pub fn is_modifier(evt: &KeyEvent) -> bool {
}
}
pub fn get_version_number(v: &str) -> i64 {
let mut n = 0;
for x in v.split(".") {
n = n * 1000 + x.parse::<i64>().unwrap_or(0);
}
n
}
pub fn check_software_update() {
std::thread::spawn(move || allow_err!(_check_software_update()));
}