From: Jeremy Allison Date: Thu, 23 Feb 2012 22:46:45 +0000 (-0800) Subject: Remove unused function. X-Git-Tag: tdb-1.2.10~634 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e6213b1aeb0243dc5f1e2d989a621a76dc621aa;p=thirdparty%2Fsamba.git Remove unused function. --- diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c index d0f2dd7241c..4c818f2f182 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 *