mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-11-27 00:04:34 +00:00
refactor: remove unused legacy trusted-device detector
The V2 management UI no longer displays legacy enrollment metadata. Remove the unused presence helper while preserving legacy records during ordinary saves. Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
e2b17fd06c
commit
040bf3f662
1 file changed
-6
@@ -578,12 +578,6 @@ impl Config2 {
|
||||
.is_some_and(|value| value.as_str() != Some("")))
|
||||
}
|
||||
|
||||
pub fn has_legacy_trusted_devices() -> crate::ResultType<bool> {
|
||||
let _lock = CONFIG2.read().unwrap();
|
||||
let config: Self = try_load_path(Self::file())?;
|
||||
Ok(!config.trusted_devices.is_empty())
|
||||
}
|
||||
|
||||
fn trusted_devices_v2(&self) -> crate::ResultType<&str> {
|
||||
match &self.trusted_devices_v2 {
|
||||
None => Ok(""),
|
||||
|
||||
Reference in new issue
Block a user