del unused
This commit is contained in:
parent
a7af7967f6
commit
7296e55435
@ -198,7 +198,6 @@ class ServerModel with ChangeNotifier {
|
|||||||
Future<Null> startService() async {
|
Future<Null> startService() async {
|
||||||
_isStart = true;
|
_isStart = true;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
FFI.setByName("ensure_init_event_queue");
|
|
||||||
FFI.ffiModel.updateEventListener("");
|
FFI.ffiModel.updateEventListener("");
|
||||||
await FFI.invokeMethod("init_service");
|
await FFI.invokeMethod("init_service");
|
||||||
FFI.setByName("start_service");
|
FFI.setByName("start_service");
|
||||||
|
@ -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>>> {
|
pub fn get() -> Arc<RwLock<Option<Session>>> {
|
||||||
SESSION.clone()
|
SESSION.clone()
|
||||||
}
|
}
|
||||||
|
@ -423,9 +423,6 @@ unsafe extern "C" fn set_by_name(name: *const c_char, value: *const c_char) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Server Side
|
// Server Side
|
||||||
"ensure_init_event_queue" => {
|
|
||||||
Session::ensure_init_event_queue();
|
|
||||||
}
|
|
||||||
"update_password" => {
|
"update_password" => {
|
||||||
if value.is_empty() {
|
if value.is_empty() {
|
||||||
Config::set_password(&Config::get_auto_password());
|
Config::set_password(&Config::get_auto_password());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user