commit 2270056: [Minor] Remove unused stuff
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Jan 1 11:07:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-01-01 11:02:29 +0000
URL: https://github.com/rspamd/rspamd/commit/2270056a52964f3582f46e87c89b7564d26c833e (HEAD -> master)
[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);
More information about the Commits
mailing list