Clean code

This commit is contained in:
Christophe Maudoux 2019-04-29 21:56:18 +02:00
parent f1c82e52cd
commit 6e2e3456fe
3 changed files with 0 additions and 21 deletions

View File

@ -300,13 +300,6 @@ sub run {
$_2fDevices = [];
}
# my @keep = ();
# while (@$_2fDevices) {
# my $element = shift @$_2fDevices;
# $self->logger->debug("Looking for 2F device to delete ...");
# push @keep, $element unless ( $element->{epoch} eq $epoch );
# }
# Delete TOTP 2F device
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
$self->logger->debug(

View File

@ -287,13 +287,6 @@ sub run {
$_2fDevices = [];
}
# my @keep = ();
# while (@$_2fDevices) {
# my $element = shift @$_2fDevices;
# $self->logger->debug("Looking for 2F device to delete ...");
# push @keep, $element unless ( $element->{epoch} eq $epoch );
# }
# Delete U2F device
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
$self->logger->debug(

View File

@ -181,13 +181,6 @@ sub run {
$_2fDevices = [];
}
# my @keep = ();
# while (@$_2fDevices) {
# my $element = shift @$_2fDevices;
# $self->logger->debug("Looking for 2F device to delete ...");
# push @keep, $element unless ( $element->{epoch} eq $epoch );
# }
# Delete Yubikey device
@$_2fDevices = grep { $_->{epoch} ne $epoch } @$_2fDevices;
$self->logger->debug(