]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: lua: remove unused hlua_smp->l7 and hlua_txn->l7
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Apr 2015 22:56:08 +0000 (00:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:35:53 +0000 (11:35 +0200)
Since last commit, we don't retrieve the HTTP transaction from there
anymore, so these entries can go.

include/types/hlua.h
src/hlua.c

index 13465d8a4ab1ab1bdaf2c6f4c71a3ed1884147d3..82e80c4fd1f30e99c0c345af4f530092ef28813b 100644 (file)
@@ -93,14 +93,12 @@ struct hlua_rule {
 struct hlua_txn {
        struct stream *s;
        struct proxy *p;
-       void *l7;
 };
 
 /* This struc is used with sample fetches and sample converters. */
 struct hlua_smp {
        struct stream *s;
        struct proxy *p;
-       void *l7;
        int stringsafe;
 };
 
index 320a0bf601819118fc7a689874c4f05b341a158e..b278e11631dcb9c3fd6d01ec13c522da0a4f51cf 100644 (file)
@@ -2718,7 +2718,6 @@ static int hlua_fetches_new(lua_State *L, struct hlua_txn *txn, int stringsafe)
 
        hsmp->s = txn->s;
        hsmp->p = txn->p;
-       hsmp->l7 = txn->l7;
        hsmp->stringsafe = stringsafe;
 
        /* Pop a class sesison metatable and affect it to the userdata. */
@@ -2822,7 +2821,6 @@ static int hlua_converters_new(lua_State *L, struct hlua_txn *txn, int stringsaf
 
        hsmp->s = txn->s;
        hsmp->p = txn->p;
-       hsmp->l7 = txn->l7;
        hsmp->stringsafe = stringsafe;
 
        /* Pop a class stream metatable and affect it to the table. */
@@ -2941,7 +2939,6 @@ static int hlua_http_new(lua_State *L, struct hlua_txn *txn)
 
        htxn->s = txn->s;
        htxn->p = txn->p;
-       htxn->l7 = txn->l7;
 
        /* Pop a class stream metatable and affect it to the table. */
        lua_rawgeti(L, LUA_REGISTRYINDEX, class_http_ref);
@@ -3342,7 +3339,6 @@ static int hlua_txn_new(lua_State *L, struct stream *s, struct proxy *p)
 
        htxn->s = s;
        htxn->p = p;
-       htxn->l7 = s->txn;
 
        /* Create the "f" field that contains a list of fetches. */
        lua_pushstring(L, "f");