diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-11-07 06:29:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-11-07 06:29:57 -0800 |
commit | 93d385779de736c6fa6dabea1456ba18fd2b0d3d (patch) | |
tree | 79de71e1d96896afe847771c389cdc02a5300fc0 | |
parent | 107fc60fffd996553736e3673cd8c4e3cfdee80c (diff) | |
download | txr-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |