]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: http: remove the two unused constructors in rules and ana
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 17:26:26 +0000 (19:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2022 17:26:26 +0000 (19:26 +0200)
__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
src/http_rules.c

index 7cbec5885a4d62fa22254eca01c1e8f29e61492d..187b88179128b865f4d61bea8dc26b5db82b886e 100644 (file)
@@ -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
index d3f41bf14c90c812eae2dff01410afaba7e896e2..8e257eae8db7ce52b799f5e7d3dd86b83a129f0a 100644 (file)
@@ -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