From ae5d35b09e9bcf39523a5300985720786860e65a Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 3 Mar 2011 17:50:28 +0100 Subject: [PATCH] s3:idmap: remove (now) unneeded function parse_idmap_module() --- source3/winbindd/idmap.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 1c4e25ad336..0fd987cf0b4 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -153,44 +153,6 @@ NTSTATUS smb_register_idmap(int version, const char *name, return NT_STATUS_OK; } -static bool parse_idmap_module(TALLOC_CTX *mem_ctx, const char *param, - char **pmodulename, char **pargs) -{ - char *modulename; - char *args; - - if (strncmp(param, "idmap_", 6) == 0) { - param += 6; - DEBUG(1, ("idmap_init: idmap backend uses deprecated " - "'idmap_' prefix. Please replace 'idmap_%s' by " - "'%s'\n", param, param)); - } - - modulename = talloc_strdup(mem_ctx, param); - if (modulename == NULL) { - return false; - } - - args = strchr(modulename, ':'); - if (args == NULL) { - *pmodulename = modulename; - *pargs = NULL; - return true; - } - - *args = '\0'; - - args = talloc_strdup(mem_ctx, args+1); - if (args == NULL) { - TALLOC_FREE(modulename); - return false; - } - - *pmodulename = modulename; - *pargs = args; - return true; -} - /** * Initialize a domain structure * @param[in] mem_ctx memory context for the result