mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 18:22:39 +03:00
Remove commented code.
This commit is contained in:
parent
cd0dfbbf1f
commit
beb8ebfc4d
@ -190,15 +190,6 @@ class _DesktopDevicesNotifier extends AttachedDevicesNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
final desktopDevicesProvider2 = Provider<List<DeviceNode>>((ref) {
|
||||
final usbDevices = ref.watch(_usbDevicesProvider).toList();
|
||||
final nfcDevices = ref.watch(_nfcDevicesProvider).toList();
|
||||
usbDevices.sort((a, b) => a.name.compareTo(b.name));
|
||||
nfcDevices.sort((a, b) => a.name.compareTo(b.name));
|
||||
return [...usbDevices, ...nfcDevices];
|
||||
});
|
||||
*/
|
||||
final _desktopDeviceDataProvider =
|
||||
StateNotifierProvider<CurrentDeviceDataNotifier, YubiKeyData?>((ref) {
|
||||
final notifier = CurrentDeviceDataNotifier(
|
||||
|
@ -186,7 +186,6 @@ final desktopOathCredentialListProvider = StateNotifierProvider.autoDispose
|
||||
(ref, devicePath) {
|
||||
var notifier = _DesktopCredentialListNotifier(
|
||||
ref.watch(_sessionProvider(devicePath)),
|
||||
//ref.watch(oathStateProvider(devicePath).select((s) => s?.locked ?? true)),
|
||||
ref.watch(oathStateProvider(devicePath).select(
|
||||
(r) => r.whenOrNull(success: (state) => state.locked) ?? true)),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user