From 0dbcc64a5cee58d5fffaaef923302d9c7a951a7d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 30 Aug 2013 20:55:38 -0400 Subject: krb5: Remove unused function Related: https://fedorahosted.org/sssd/ticket/2061 --- src/util/sss_krb5.c | 30 ------------------------------ src/util/sss_krb5.h | 2 -- 2 files changed, 32 deletions(-) (limited to 'src/util') diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c index 440edab8a..d4fee42a0 100644 --- a/src/util/sss_krb5.c +++ b/src/util/sss_krb5.c @@ -920,36 +920,6 @@ sss_krb5_residual_by_type(const char *full_location, return full_location + offset; } -const char * -sss_krb5_cc_file_path(const char *full_location) -{ - enum sss_krb5_cc_type cc_type; - const char *residual; - - cc_type = sss_krb5_get_type(full_location); - residual = sss_krb5_residual_by_type(full_location, cc_type); - - switch(cc_type) { -#ifdef HAVE_KRB5_CC_COLLECTION - case SSS_KRB5_TYPE_KEYRING: -#endif /* HAVE_KRB5_CC_COLLECTION */ - case SSS_KRB5_TYPE_FILE: - return residual; -#ifdef HAVE_KRB5_CC_COLLECTION - case SSS_KRB5_TYPE_DIR: - /* DIR::/run/user/tkt_foo */ - if (residual[0] == ':') { - ++residual; - } - return residual; -#endif /* HAVE_KRB5_CC_COLLECTION */ - case SSS_KRB5_TYPE_UNKNOWN: - break; - } - - return NULL; -} - const char * sss_krb5_residual_check_type(const char *full_location, enum sss_krb5_cc_type expected_type) diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h index aaf2a6488..efde48b62 100644 --- a/src/util/sss_krb5.h +++ b/src/util/sss_krb5.h @@ -154,8 +154,6 @@ sss_krb5_get_type(const char *full_location); const char * sss_krb5_residual_by_type(const char *full_location, enum sss_krb5_cc_type type); const char * -sss_krb5_cc_file_path(const char *full_location); -const char * sss_krb5_residual_check_type(const char *full_location, enum sss_krb5_cc_type expected_type); -- cgit