Skip to content

Commit

Permalink
Remove unused macro
Browse files Browse the repository at this point in the history
  • Loading branch information
const-t committed Oct 27, 2023
1 parent b78a8b9 commit 1000722
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fw/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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 : \
Expand Down

0 comments on commit 1000722

Please sign in to comment.