mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
del unused
This commit is contained in:
@@ -51,13 +51,6 @@ impl Session {
|
||||
});
|
||||
}
|
||||
|
||||
pub fn ensure_init_event_queue() {
|
||||
let mut s = SESSION.write().unwrap();
|
||||
if s.is_none() {
|
||||
s.replace(Session::default());
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get() -> Arc<RwLock<Option<Session>>> {
|
||||
SESSION.clone()
|
||||
}
|
||||
|
||||
@@ -423,9 +423,6 @@ unsafe extern "C" fn set_by_name(name: *const c_char, value: *const c_char) {
|
||||
}
|
||||
}
|
||||
// Server Side
|
||||
"ensure_init_event_queue" => {
|
||||
Session::ensure_init_event_queue();
|
||||
}
|
||||
"update_password" => {
|
||||
if value.is_empty() {
|
||||
Config::set_password(&Config::get_auto_password());
|
||||
|
||||
Reference in New Issue
Block a user