From ebab60279e45770d5c62e2f4988ddb745eaca35e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 25 Apr 2022 19:26:26 +0200 Subject: [PATCH] BUILD: http: remove the two unused constructors in rules and ana __http_protocol_init() and __http_rules_init() were empty leftovers from a previous more intense use of constructors. Let's just get rid of them now. --- src/http_ana.c | 6 ------ src/http_rules.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/src/http_ana.c b/src/http_ana.c index 7cbec5885..187b88179 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -5173,12 +5173,6 @@ void http_destroy_txn(struct stream *s) DECLARE_POOL(pool_head_http_txn, "http_txn", sizeof(struct http_txn)); -__attribute__((constructor)) -static void __http_protocol_init(void) -{ -} - - /* * Local variables: * c-indent-level: 8 diff --git a/src/http_rules.c b/src/http_rules.c index d3f41bf14..8e257eae8 100644 --- a/src/http_rules.c +++ b/src/http_rules.c @@ -490,11 +490,6 @@ struct redirect_rule *http_parse_redirect_rule(const char *file, int linenum, st return NULL; } -__attribute__((constructor)) -static void __http_rules_init(void) -{ -} - /* * Local variables: * c-indent-level: 8