Removed mg_get_request_info()

This commit is contained in:
Sergey Lyubka 2013-09-30 13:02:36 +01:00
parent cd7e1b9eb7
commit ef28c37529
3 changed files with 1 additions and 9 deletions

View File

@ -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;

View File

@ -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++;

View File

@ -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++;