From: Willy Tarreau Date: Tue, 10 Mar 2015 12:50:03 +0000 (+0100) Subject: CLEANUP: lua: remove the session pointer from hlua_channel X-Git-Tag: v1.6-dev1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6870521e59d693f98e5fd890a257898ac8dfa22;p=thirdparty%2Fhaproxy.git CLEANUP: lua: remove the session pointer from hlua_channel It was only used to find what side the channel belongs to. --- diff --git a/include/types/hlua.h b/include/types/hlua.h index 88a8b8d2e9..2275671004 100644 --- a/include/types/hlua.h +++ b/include/types/hlua.h @@ -133,7 +133,6 @@ struct hlua_socket { */ struct hlua_channel { struct channel *chn; - struct session *s; }; #else /* USE_LUA */ diff --git a/src/hlua.c b/src/hlua.c index 1b6df67ee2..0b82e922aa 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -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);