From: Jeremy Allison Date: Thu, 27 Aug 2020 18:12:17 +0000 (-0700) Subject: s3: libsmb: Remove now unused dup_ip_service_array(). X-Git-Tag: talloc-2.3.2~585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57349b65cc4323ae757a48b7a878bf9861728cd1;p=thirdparty%2Fsamba.git s3: libsmb: Remove now unused dup_ip_service_array(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index cfacbafbe5d..ac35567383a 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -64,31 +64,6 @@ bool sockaddr_storage_to_samba_sockaddr(struct samba_sockaddr *sa, return true; } -#if 0 -/* - * Utility function to convert a MALLOC'ed struct ip_serivce array - * to a talloc'ed one. This function will go away once all ip_service - * arrays are talloc'ed. - */ - -static NTSTATUS dup_ip_service_array(TALLOC_CTX *ctx, - struct ip_service **array_out, - const struct ip_service *array_in, - size_t count) -{ - struct ip_service *array_copy = NULL; - - array_copy = talloc_memdup(ctx, - array_in, - count * sizeof(array_in[0])); - if (array_copy == NULL) { - return NT_STATUS_NO_MEMORY; - } - *array_out = array_copy; - return NT_STATUS_OK; -} -#endif - /**************************** * SERVER AFFINITY ROUTINES * ****************************/