CLEANUP: lua: remove the session pointer from hlua_channel

It was only used to find what side the channel belongs to.
This commit is contained in:
Willy Tarreau 2015-03-10 13:50:03 +01:00
parent 6c6dc16505
commit f6870521e5
2 changed files with 0 additions and 2 deletions

View File

@ -133,7 +133,6 @@ struct hlua_socket {
*/
struct hlua_channel {
struct channel *chn;
struct session *s;
};
#else /* USE_LUA */

View File

@ -2077,7 +2077,6 @@ static int hlua_channel_new(lua_State *L, struct session *s, struct channel *cha
chn = MAY_LJMP(lua_newuserdata(L, sizeof(*chn)));
lua_rawseti(L, -2, 0);
chn->chn = channel;
chn->s = s;
/* Pop a class sesison metatable and affect it to the userdata. */
lua_rawgeti(L, LUA_REGISTRYINDEX, class_channel_ref);