From: Andre Noll Date: Tue, 27 May 2025 21:51:40 +0000 (+0200) Subject: server.c: Remove unused server_get_tasks(). X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=4841dc4edc8f0e8264f6a6ca8fb525ba69859ada;p=paraslash.git server.c: Remove unused server_get_tasks(). The last caller was removed when the tasks server subcommand was disabled eight years ago. Fixes: bb91597b9ecf650a63a40753f7f7c771576d252e --- diff --git a/server.c b/server.c index a3032c5b..48ada73c 100644 --- a/server.c +++ b/server.c @@ -116,19 +116,6 @@ struct server_command_task { struct task *task; }; -/** - * Return the list of tasks for the server process. - * - * This is called from \a com_tasks(). The helper is necessary since command - * handlers can not access the scheduler structure directly. - * - * \return A dynamically allocated string that must be freed by the caller. - */ -char *server_get_tasks(void) -{ - return get_task_list(&sched); -} - static void pre_log_hook(void) { mutex_lock(log_mutex); diff --git a/server.h b/server.h index 10bb6172..0614efe4 100644 --- a/server.h +++ b/server.h @@ -100,6 +100,5 @@ extern struct lls_parse_result *server_lpr; int handle_connect(int fd); void parse_config_or_die(bool reload); -char *server_get_tasks(void); bool process_is_command_handler(void); void free_lpr(void);