summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-09-07 22:28:15 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-09-07 22:28:15 -0700
commite9c5a283537e9d7a0722189dbaf295d9f684a7e8 (patch)
tree2b134c5b3332bd2843f840d113dab02a99ea8f0e
parent90a37de844401a2269dec7d2e2b4b48c934c88c3 (diff)
downloadtxr-e9c5a283537e9d7a0722189dbaf295d9f684a7e8.tar.gz
txr-e9c5a283537e9d7a0722189dbaf295d9f684a7e8.tar.bz2
txr-e9c5a283537e9d7a0722189dbaf295d9f684a7e8.zip
unwind: remove unused uw_errorf.
* unwind.[ch] (uw_errorf): Function removed.
-rw-r--r--unwind.c13
-rw-r--r--unwind.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/unwind.c b/unwind.c
index a5a06b6e..9d4c7586 100644
--- a/unwind.c
+++ b/unwind.c
@@ -803,19 +803,6 @@ val uw_throwf(val sym, val fmt, ...)
abort();
}
-val uw_errorf(val fmt, ...)
-{
- va_list vl;
- val stream = make_string_output_stream();
-
- va_start (vl, fmt);
- (void) vformat(stream, fmt, vl);
- va_end (vl);
-
- uw_throw(error_s, get_string_from_stream(stream));
- abort();
-}
-
val uw_errorfv(val fmt, struct args *args)
{
val stream = make_string_output_stream();
diff --git a/unwind.h b/unwind.h
index 5db77717..97280abc 100644
--- a/unwind.h
+++ b/unwind.h
@@ -348,7 +348,6 @@ val uw_rthrowv(val sym, struct args *);
val uw_rthrowfv(val sym, val fmt, struct args *);
NORETURN val uw_throw(val sym, val exception);
NORETURN val uw_throwf(val sym, val fmt, ...);
-NORETURN val uw_errorf(val fmt, ...);
NORETURN val uw_errorfv(val fmt, struct args *args);
val uw_warningf(val fmt, ...);
val uw_defer_warning(val args);