Remove commented code.

This commit is contained in:
Dain Nilsson 2022-03-11 13:53:09 +01:00
parent cd0dfbbf1f
commit beb8ebfc4d
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
2 changed files with 0 additions and 10 deletions

View File

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

View File

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