summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2019-03-06 15:26:45 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2019-03-06 15:26:45 +0300
commitdccb4cf3548724fbec993c5bb83edf928d0b23bf (patch)
treec0484c59ccd8e868ae1373351def5edb28c28874 /src/nxt_application.c
parente1c4568680b63c478e8a0e111d8ad9316a96c442 (diff)
downloadunit-dccb4cf3548724fbec993c5bb83edf928d0b23bf.tar.gz
unit-dccb4cf3548724fbec993c5bb83edf928d0b23bf.tar.bz2
Removed unnecessary abstraction layer.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index a2827b75..f63b90fb 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -36,8 +36,6 @@ static nxt_app_module_t *nxt_app_module_load(nxt_task_t *task,
const char *name);
static nxt_int_t nxt_app_set_environment(nxt_conf_value_t *environment);
-static void nxt_app_http_release(nxt_task_t *task, void *obj, void *data);
-
static uint32_t compat[] = {
NXT_VERNUM, NXT_DEBUG,
@@ -431,32 +429,6 @@ nxt_app_set_environment(nxt_conf_value_t *environment)
}
-nxt_int_t
-nxt_app_http_req_done(nxt_task_t *task, nxt_app_parse_ctx_t *ar)
-{
- ar->timer.handler = nxt_app_http_release;
- nxt_timer_add(task->thread->engine, &ar->timer, 0);
-
- return NXT_OK;
-}
-
-
-static void
-nxt_app_http_release(nxt_task_t *task, void *obj, void *data)
-{
- nxt_timer_t *timer;
- nxt_app_parse_ctx_t *ar;
-
- timer = obj;
-
- nxt_debug(task, "http app release");
-
- ar = nxt_timer_data(timer, nxt_app_parse_ctx_t, timer);
-
- nxt_mp_release(ar->request->mem_pool);
-}
-
-
nxt_app_lang_module_t *
nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name)
{