1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:lib: remove unused str_list_sub_basic()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Stefan Metzmacher 2019-10-15 10:15:14 +02:00
parent ff35160dc6
commit 848cd4c460
2 changed files with 0 additions and 31 deletions

View 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,

View 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;
}