[master] 30fec48b3 Remove unused macros found by Flexelint

Nils Goroll nils.goroll at uplex.de
Wed Aug 31 09:04:07 UTC 2022


commit 30fec48b3577ff64d1c4ee9519e1e05c122dd8e4
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Aug 31 11:02:52 2022 +0200

    Remove unused macros found by Flexelint

diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 7a12df235..cbe280d11 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -217,7 +217,6 @@ VRT_l_beresp_##field(VRT_CTX, VCL_BOOL a)				\
 		return (0);			\
 	} while(0)
 
-#define VBERESPR0(field, str, fltchk)
 #define VBERESPR1(field, str, fltchk)					\
 VCL_BOOL								\
 VRT_r_beresp_##field(VRT_CTX)						\
@@ -240,7 +239,6 @@ VRT_r_beresp_##field(VRT_CTX)						\
 
 #undef VBERESPRF0
 #undef VBERESPRF1
-#undef VBERESPR0
 #undef VBERESPR1
 
 /*--------------------------------------------------------------------
@@ -257,9 +255,6 @@ VRT_r_bereq_##field(VRT_CTX)						\
 	return (ctx->bo->field);					\
 }
 
-// w is unused
-#define VBEREQW0(ctx, str) (void) 0
-
 #define BEREQ_FLAG(l, r, w, d)		\
 	VBEREQR##r(l, #l)
 #include "tbl/bereq_flags.h"


More information about the varnish-commit mailing list