Skip to content

Commit

Permalink
[Minor] Remove unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jan 1, 2023
1 parent f227be5 commit 2270056
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
9 changes: 0 additions & 9 deletions src/libserver/task.c
Expand Up @@ -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
*/
Expand Down
5 changes: 0 additions & 5 deletions src/libserver/task.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lua/lua_util.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/worker.c
Expand Up @@ -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);
Expand Down

0 comments on commit 2270056

Please sign in to comment.