Remove unused function.
authorJeremy Allison <jra@samba.org>
Thu, 23 Feb 2012 22:46:45 +0000 (14:46 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 24 Feb 2012 17:25:30 +0000 (09:25 -0800)
source3/utils/net_util.c

index d0f2dd7241c6560411066dc366970c396357218f..4c818f2f1827d96b1aacdd0fd7a7372c219ff6ec 100644 (file)
@@ -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
  *