From 6f69aef553d2b33cc58ceaf67664c7927013a85c Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 24 Nov 2008 18:30:53 +0000 Subject: [PATCH] Remove some dead code in PAM verify_result_str() isn't used anymore. --- pam/pam_fprintd.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c index 2056780..8bc9a52 100644 --- a/pam/pam_fprintd.c +++ b/pam/pam_fprintd.c @@ -50,35 +50,6 @@ static gboolean debug = FALSE; -enum fp_verify_result { - VERIFY_NO_MATCH = 0, - VERIFY_MATCH = 1, - VERIFY_RETRY = 100, - VERIFY_RETRY_TOO_SHORT = 101, - VERIFY_RETRY_CENTER_FINGER = 102, - VERIFY_RETRY_REMOVE_FINGER = 103, -}; - -static const char *verify_result_str(int result) -{ - switch (result) { - case VERIFY_NO_MATCH: - return "No match"; - case VERIFY_MATCH: - return "Match!"; - case VERIFY_RETRY: - return "Retry scan"; - case VERIFY_RETRY_TOO_SHORT: - return "Swipe too short, please retry"; - case VERIFY_RETRY_CENTER_FINGER: - return "Finger not centered, please retry"; - case VERIFY_RETRY_REMOVE_FINGER: - return "Please remove finger and retry"; - default: - return "Unknown"; - } -} - static gboolean send_info_msg(pam_handle_t *pamh, const char *msg) { const struct pam_message mymsg = {