From e86209a558d4bd3ac7ddce79ebdfe26008325c5b Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 16 Jun 2025 14:39:15 +0200 Subject: [PATCH] module: remove CAST_MODULE as module.deleter no longer exist, this should not be required --- src/module.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/module.h b/src/module.h index 58fa73f3b..05cfee995 100644 --- a/src/module.h +++ b/src/module.h @@ -53,11 +53,6 @@ * s->mod.priv_data = s; // optional * module_register(&s->mod, s->parent); * ``` - * - * @note - * Struct module should be first inside the struct in order to be able to call - * @ref CAST_MODULE to it (however, it is currently strictly required only for - * @ref tx and @ref video_compress_info modules). */ #ifndef MODULE_H_ @@ -191,8 +186,6 @@ struct module *get_parent_module(struct module *node); void dump_tree(struct module *root_node, int indent); void dump_parents(struct module *node); -#define CAST_MODULE(x) ((struct module *) x) - #ifdef __cplusplus } #endif