]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc/ndr: remove unused NDR_PUSH_ALLOC_SIZE()
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Aug 2024 11:27:48 +0000 (13:27 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 29 Aug 2024 18:25:28 +0000 (18:25 +0000)
Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
librpc/ndr/libndr.h

index 223501ab781c5e6613b81ddb086e890e51061dfd..02ef2836c1a964e4e7d1bcb4fa008c7f01250db7 100644 (file)
@@ -515,12 +515,6 @@ enum ndr_compression_alg {
        if (unlikely(!(s))) return ndr_pull_error(ndr, NDR_ERR_ALLOC, "Alloc %zu * %s failed: %s\n", (size_t)n, # s, __location__); \
 } while (0)
 
-
-#define NDR_PUSH_ALLOC_SIZE(ndr, s, size) do { \
-       (s) = talloc_array(ndr, uint8_t, size); \
-       if (unlikely(!(s))) return ndr_push_error(ndr, NDR_ERR_ALLOC, "push alloc %zu failed: %s\n", (size_t)size, __location__); \
-} while (0)
-
 #define NDR_PUSH_ALLOC(ndr, s) do { \
        (s) = talloc_ptrtype(ndr, (s)); \
        if (unlikely(!(s))) return ndr_push_error(ndr, NDR_ERR_ALLOC, "push alloc %s failed: %s\n", # s, __location__); \