From 5b6245d14b090162321d21e21a5f6da9c2f0cb77 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 9 Sep 2020 10:43:45 -0700 Subject: [PATCH] s3: libsmb: namequery.c: Remove now unused internal_resolve_name() wrapper. Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- source3/libsmb/namequery.c | 47 -------------------------------------- 1 file changed, 47 deletions(-) diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index f412aaef7cb..d131976377e 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -3473,53 +3473,6 @@ NTSTATUS internal_resolve_name(TALLOC_CTX *ctx, return status; } -#if 0 -/******************************************************** - Temporary wrapper function for _internal_resolve_name(). - Converts to samba_sockaddr array. Will go away once - all callers are converted. -********************************************************/ - -NTSTATUS internal_resolve_name(TALLOC_CTX *ctx, - const char *name, - int name_type, - const char *sitename, - struct samba_sockaddr **return_salist, - size_t *return_count, - const char **resolve_order) -{ - struct ip_service *ss_list = NULL; - struct samba_sockaddr *sa_list = NULL; - size_t count; - NTSTATUS tmp_status; - NTSTATUS status = _internal_resolve_name(ctx, - name, - name_type, - sitename, - &ss_list, - &count, - resolve_order); - - if (!NT_STATUS_IS_OK(status)) { - return status; - } - - tmp_status = ip_service_to_samba_sockaddr(ctx, - &sa_list, - ss_list, - count); - if (!NT_STATUS_IS_OK(tmp_status)) { - TALLOC_FREE(ss_list); - return status; - } - - TALLOC_FREE(ss_list); - *return_count = count; - *return_salist = sa_list; - return status; -} -#endif - /******************************************************** Internal interface to resolve a name into one IP address. Use this function if the string is either an IP address, DNS