mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-22 18:33:28 -04:00
CLEANUP: lua: remove unused hlua_smp->l7 and hlua_txn->l7
Since last commit, we don't retrieve the HTTP transaction from there anymore, so these entries can go.
This commit is contained in:
parent
15e91e1b36
commit
f3bf3050a1
2 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue