diff --git a/lib/krb5/context.c b/lib/krb5/context.c index 159689dc2..79e1000fd 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -821,31 +821,6 @@ krb5_get_default_in_tkt_etypes(krb5_context context, return 0; } -/** - * Return the error string for the error code. The caller must not - * free the string. - * - * @param context Kerberos 5 context. - * @param code Kerberos error code. - * - * @return the error message matching code - * - * @ingroup krb5 - */ - -const char* KRB5_LIB_FUNCTION -krb5_get_err_text(krb5_context context, krb5_error_code code) -{ - const char *p = NULL; - if(context != NULL) - p = com_right(context->et_list, code); - if(p == NULL) - p = strerror(code); - if (p == NULL) - p = "Unknown error"; - return p; -} - /** * Init the built-in ets in the Kerberos library. *