summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-08 22:19:44 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-08 22:19:44 -0700
commit5bd3d88ae15de84ff0fdc13346250934dfe1cfc0 (patch)
treee18f83de445bf78559e2b7ed9a873081115053e4 /src/modules
parentf5b05390f057b0c7c1a5f99be354692445678e55 (diff)
modules/rkt: drop vestigial module_setup
a390e82 stopped using this, but didn't remove it. As it was initialized to NULL, it was deffectively all a NOOP.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/rkt/rkt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c
index 755074b..3a7b880 100644
--- a/src/modules/rkt/rkt.c
+++ b/src/modules/rkt/rkt.c
@@ -103,7 +103,6 @@ static til_module_context_t * rkt_create_context(const til_module_t *module, til
return til_module_context_free(&ctxt->til_module_context);
for (size_t i = 0; i < s->n_scenes; i++) {
- til_setup_t *module_setup = NULL;
int r;
/* FIXME TODO: this needs to be handle-aware so scenes can directly reference existing contexts */
@@ -112,7 +111,6 @@ static til_module_context_t * rkt_create_context(const til_module_t *module, til
return til_module_context_free(&ctxt->til_module_context);
r = til_module_create_context(ctxt->scenes[i].module, stream, rand_r(&seed), ticks, 0, s->scenes[i].setup, &ctxt->scenes[i].module_ctxt);
- til_setup_free(module_setup);
if (r < 0)
return til_module_context_free(&ctxt->til_module_context);
}
© All Rights Reserved