From 53d800f9f633bcd259f37e9360f7af008e5cf486 Mon Sep 17 00:00:00 2001 From: Constantine Date: Thu, 28 Sep 2023 14:43:09 +0300 Subject: [PATCH] Remove unused macro --- fw/http.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fw/http.h b/fw/http.h index 2d721c2b1..d155a2d20 100644 --- a/fw/http.h +++ b/fw/http.h @@ -412,8 +412,6 @@ struct tfw_http_msg_t { TFW_HTTP_MSG_COMMON; }; -#define __MSG_STR_START(m) (&(m)->crlf) - #define TFW_HTTP_COND_IF_MSINCE 0x0001 #define TFW_HTTP_COND_ETAG_ANY 0x0002 #define TFW_HTTP_COND_ETAG_LIST 0x0004 @@ -496,9 +494,6 @@ struct tfw_http_req_t { unsigned char method_override; }; -#define TFW_HTTP_REQ_STR_START(r) __MSG_STR_START(r) -#define TFW_HTTP_REQ_STR_END(r) ((&(r)->uri_path) + 1) - #define TFW_IDX_BITS 12 #define TFW_D_IDX_BITS 4 @@ -601,9 +596,6 @@ typedef struct { #define TFW_HDR_MAP_SZ(cnt) (sizeof(TfwHttpHdrMap) \ + sizeof(TfwHdrIndex) * (cnt)) -#define TFW_HTTP_RESP_STR_START(r) __MSG_STR_START(r) -#define TFW_HTTP_RESP_STR_END(r) ((&(r)->body) + 1) - #define TFW_HTTP_RESP_CUT_BODY_SZ(r) \ (r)->stream ? \ (r)->body.len - (r)->cut.len : \