From ef28c3752952db4b968d457a5e7ad10d96e1c463 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Mon, 30 Sep 2013 13:02:36 +0100 Subject: [PATCH] Removed mg_get_request_info() --- build/mod_lua.c | 2 +- build/src/mongoose.c | 4 ---- mongoose.c | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/build/mod_lua.c b/build/mod_lua.c index 0d5757168..f71fec701 100644 --- a/build/mod_lua.c +++ b/build/mod_lua.c @@ -242,7 +242,7 @@ static int lsp_redirect(lua_State *L) { } static void prepare_lua_environment(struct mg_connection *conn, lua_State *L) { - const struct mg_request_info *ri = mg_get_request_info(conn); + const struct mg_request_info *ri = &conn->request_info; extern void luaL_openlibs(lua_State *); int i; diff --git a/build/src/mongoose.c b/build/src/mongoose.c index f646d0a0a..7f73e6649 100644 --- a/build/src/mongoose.c +++ b/build/src/mongoose.c @@ -159,10 +159,6 @@ const char *mg_version(void) { return MONGOOSE_VERSION; } -struct mg_request_info *mg_get_request_info(struct mg_connection *conn) { - return &conn->request_info; -} - static void mg_strlcpy(register char *dst, register const char *src, size_t n) { for (; *src != '\0' && n > 1; n--) { *dst++ = *src++; diff --git a/mongoose.c b/mongoose.c index c2e7c737a..d2be1a206 100644 --- a/mongoose.c +++ b/mongoose.c @@ -618,10 +618,6 @@ const char *mg_version(void) { return MONGOOSE_VERSION; } -struct mg_request_info *mg_get_request_info(struct mg_connection *conn) { - return &conn->request_info; -} - static void mg_strlcpy(register char *dst, register const char *src, size_t n) { for (; *src != '\0' && n > 1; n--) { *dst++ = *src++; -- GitLab