summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-07 06:29:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-11-07 06:29:57 -0800
commit93d385779de736c6fa6dabea1456ba18fd2b0d3d (patch)
tree79de71e1d96896afe847771c389cdc02a5300fc0
parent107fc60fffd996553736e3673cd8c4e3cfdee80c (diff)
downloadtxr-93d385779de736c6fa6dabea1456ba18fd2b0d3d.tar.gz
txr-93d385779de736c6fa6dabea1456ba18fd2b0d3d.tar.bz2
txr-93d385779de736c6fa6dabea1456ba18fd2b0d3d.zip
lazy strings: remove two type checks.
* lib.c (lazy_str_put, out_lazy_str): The very few calls to these functions already ensure that the object is a lazy string; let's drop the check.
-rw-r--r--lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 0ab7085b..506905af 100644
--- a/lib.c
+++ b/lib.c
@@ -7636,7 +7636,6 @@ val lazy_str_force(val lstr)
val lazy_str_put(val lstr, val stream)
{
val lim, term, iter;
- type_check(lstr, LSTR);
lim = lstr->ls.props->limit;
term = lstr->ls.props->term;
@@ -10924,7 +10923,6 @@ static void out_lazy_str(val lstr, val out)
val lim, term, iter;
const wchar_t *wcterm;
- type_check(lstr, LSTR);
lim = lstr->ls.props->limit;
term = lstr->ls.props->term;
wcterm = c_str(term);