From 2270056a52964f3582f46e87c89b7564d26c833e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 1 Jan 2023 11:02:29 +0000 Subject: [PATCH] [Minor] Remove unused stuff --- src/libserver/task.c | 9 --------- src/libserver/task.h | 5 ----- src/lua/lua_util.c | 2 +- src/worker.c | 2 +- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/libserver/task.c b/src/libserver/task.c index 46aabcb62..1b0671a53 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -171,15 +171,6 @@ rspamd_task_fin (void *arg) return FALSE; } -/* - * Called if session was restored inside fin callback - */ -void -rspamd_task_restore (void *arg) -{ - /* XXX: not needed now ? */ -} - /* * Free all structures of worker_task */ diff --git a/src/libserver/task.h b/src/libserver/task.h index 40d8f2705..d0169d896 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -231,11 +231,6 @@ struct rspamd_task *rspamd_task_new (struct rspamd_worker *worker, */ void rspamd_task_free (struct rspamd_task *task); -/** - * Called if session was restored inside fin callback - */ -void rspamd_task_restore (void *arg); - /** * Called if all filters are processed * @return TRUE if session should be terminated diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 8f53e377d..4a9b6ae5c 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -915,7 +915,7 @@ lua_util_process_message (lua_State *L) task->fin_arg = &res; task->resolver = rspamd_dns_resolver_init (NULL, base, cfg); task->s = rspamd_session_create (task->task_pool, rspamd_task_fin, - rspamd_task_restore, (event_finalizer_t)rspamd_task_free, task); + NULL, (event_finalizer_t)rspamd_task_free, task); if (!rspamd_task_load_message (task, NULL, message, mlen)) { lua_pushnil (L); diff --git a/src/worker.c b/src/worker.c index ac8f87af5..4284e0b1b 100644 --- a/src/worker.c +++ b/src/worker.c @@ -167,7 +167,7 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn, /* Set up async session */ task->s = rspamd_session_create (task->task_pool, rspamd_task_fin, - rspamd_task_restore, (event_finalizer_t )rspamd_task_free, task); + NULL, (event_finalizer_t )rspamd_task_free, task); if (!rspamd_protocol_handle_request (task, msg)) { msg_err_task ("cannot handle request: %e", task->err); -- 2.39.5