del unused

This commit is contained in:
csf 2022-05-17 21:58:15 +08:00
parent a7af7967f6
commit 7296e55435
3 changed files with 0 additions and 11 deletions

View File

@ -198,7 +198,6 @@ class ServerModel with ChangeNotifier {
Future<Null> startService() async {
_isStart = true;
notifyListeners();
FFI.setByName("ensure_init_event_queue");
FFI.ffiModel.updateEventListener("");
await FFI.invokeMethod("init_service");
FFI.setByName("start_service");

View File

@ -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()
}

View File

@ -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());