]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: remove unused str_list_sub_basic()
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 08:15:14 +0000 (10:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:31 +0000 (10:25 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/proto.h
source3/lib/substitute.c

index 223f45b69ee94c0be1dc0e41e96b26fd38bae67a..bf0ea06aa9eb92d78cf115b6a8e71749daf0ec4e 100644 (file)
@@ -620,8 +620,6 @@ size_t strlen_m(const char *s);
 size_t strlen_m_term(const char *s);
 size_t strlen_m_term_null(const char *s);
 int fstr_sprintf(fstring s, const char *fmt, ...);
-bool str_list_sub_basic( char **list, const char *smb_name,
-                        const char *domain_name );
 bool str_list_substitute(char **list, const char *pattern, const char *insert);
 
 char *ipstr_list_make(char **ipstr_list,
index f3f2e1bc0e1482c12fde00c66c5b016410d9fe6a..b5e08e0aa55d729510e5eb4920e5afa4bc6a92d2 100644 (file)
@@ -880,32 +880,3 @@ char *talloc_sub_full(TALLOC_CTX *ctx,
        TALLOC_FREE(a_string);
        return ret_string;
 }
-
-/******************************************************************************
- version of standard_sub_basic() for string lists; uses talloc_sub_basic()
- for the work
- *****************************************************************************/
-
-bool str_list_sub_basic( char **list, const char *smb_name,
-                        const char *domain_name )
-{
-       TALLOC_CTX *ctx = list;
-       char *s, *tmpstr;
-
-       while ( *list ) {
-               s = *list;
-               tmpstr = talloc_sub_basic(ctx, smb_name, domain_name, s);
-               if ( !tmpstr ) {
-                       DEBUG(0,("str_list_sub_basic: "
-                               "talloc_sub_basic() return NULL!\n"));
-                       return false;
-               }
-
-               TALLOC_FREE(*list);
-               *list = tmpstr;
-
-               list++;
-       }
-
-       return true;
-}