From 3b3bce04f0992cbac72b9af07887c315476f5d66 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 9 Dec 2023 13:10:18 +0000 Subject: [PATCH] test-login: remove dead code HANDLE_SLEEP is == _HANDLE_ACTION_SLEEP_LAST and the loop is bounded by < _HANDLE_ACTION_SLEEP_LAST, so no need to check for it CID#1529414 --- src/login/test-login-tables.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/login/test-login-tables.c b/src/login/test-login-tables.c index e9ff3085ecb..1278af7504c 100644 --- a/src/login/test-login-tables.c +++ b/src/login/test-login-tables.c @@ -11,9 +11,6 @@ static void test_sleep_handle_action(void) { const HandleActionData *data; const char *sleep_operation_str, *handle_action_str; - if (action == HANDLE_SLEEP) - continue; - assert_se(data = handle_action_lookup(action)); assert_se(handle_action_str = handle_action_to_string(action)); -- 2.47.3