]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Remove now unused dup_ip_service_array().
authorJeremy Allison <jra@samba.org>
Thu, 27 Aug 2020 18:12:17 +0000 (11:12 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:43 +0000 (13:23 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/namequery.c

index cfacbafbe5d367e484380b5f9302cadd0ebb13a4..ac35567383a728dcb4dd48a68640bb0a2e964641 100644 (file)
@@ -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 *
  ****************************/