summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-02-28 08:12:49 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-02-28 08:12:49 -0800
commitdd4e03b52435e2a3759179d1fdaf130f71a872d8 (patch)
tree5db78700185d9da1c497487887b65fcfa7a8fba9 /lib.c
parentc434dabdc79602d8dec2d722a0002704daa8ff5a (diff)
downloadtxr-dd4e03b52435e2a3759179d1fdaf130f71a872d8.tar.gz
txr-dd4e03b52435e2a3759179d1fdaf130f71a872d8.tar.bz2
txr-dd4e03b52435e2a3759179d1fdaf130f71a872d8.zip
seq_build: remove one finish function.
* lib.c (seq_build_improper_finish): Function removed. (sb_improper_ops): Replace seq_build_improper_finish with null pointer. The seq_finish function checks for null and avoids calling, so we don't need the noop implementation.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib.c b/lib.c
index 41f5db72..1096f521 100644
--- a/lib.c
+++ b/lib.c
@@ -1545,11 +1545,6 @@ static void seq_build_improper_pend(seq_build_t *bu, val item)
uw_throwf(error_s, lit("~a: cannot append after atom ~s"), bu->self, atom, nao);
}
-static void seq_build_improper_finish(seq_build_t *bu)
-{
- (void) bu;
-}
-
static struct seq_build_ops
sb_vec_ops = seq_build_ops_init(seq_build_vec_add,
seq_build_generic_pend,
@@ -1589,7 +1584,7 @@ static struct seq_build_ops
static struct seq_build_ops
sb_improper_ops = seq_build_ops_init(seq_build_improper_add,
seq_build_improper_pend,
- seq_build_improper_finish,
+ 0,
seq_build_obj_mark);
static struct seq_build_ops