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:
parent
b383164e06
commit
0f39bcc5fe
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue