From 0e6213b1aeb0243dc5f1e2d989a621a76dc621aa Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 Feb 2012 14:46:45 -0800 Subject: Remove unused function. --- source3/utils/net_util.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c index d0f2dd7241..4c818f2f18 100644 --- a/source3/utils/net_util.c +++ b/source3/utils/net_util.c @@ -220,27 +220,6 @@ NTSTATUS connect_to_ipc_anonymous(struct net_context *c, } } -/**************************************************************************** - Return malloced user@realm for krb5 login. -****************************************************************************/ - -static char *get_user_and_realm(const char *username) -{ - char *user_and_realm = NULL; - - if (!username) { - return NULL; - } - if (strchr_m(username, '@')) { - user_and_realm = SMB_STRDUP(username); - } else { - if (asprintf(&user_and_realm, "%s@%s", username, lp_realm()) == -1) { - user_and_realm = NULL; - } - } - return user_and_realm; -} - /** * Connect a server and open a given pipe * -- cgit