0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-12 09:41:18 +02:00

refactor: remove unused function

This commit is contained in:
MusiKid 2022-01-26 13:11:21 +01:00 committed by musikid
parent b383164e06
commit 0f39bcc5fe
No known key found for this signature in database
GPG key ID: 7567D43648C6E2F4
2 changed files with 1 additions and 5 deletions

View file

@ -356,7 +356,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv,
// UNSAFE: We cancel the thread using pthread, pam_get_authtok seems to be
// a cancellation point
if (workaround == Workaround::Native && pass_task.is_active()) {
if (workaround == Workaround::Native) {
pass_task.stop(true);
} else if (workaround == Workaround::Input) {
// We check if we have the right permissions on /dev/uinput

View file

@ -53,10 +53,6 @@ template <typename T> auto optional_task<T>::get() -> T {
return _future.get();
}
template <typename T> auto optional_task<T>::is_active() -> bool {
return _is_active;
}
// Stop the thread:
// - if `force` is `false`, by joining the thread.
// - if `force` is `true`, by cancelling the thread using `pthread_cancel`.