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 | 1fa1eb6201a277b037f047214c4a97f34a6aeba2 (patch) | |
tree | 79de71e1d96896afe847771c389cdc02a5300fc0 | |
parent | 6fdad9e0389cb51b5822fda2920f510cb9a8881a (diff) | |
download | txr-1fa1eb6201a277b037f047214c4a97f34a6aeba2.tar.gz txr-1fa1eb6201a277b037f047214c4a97f34a6aeba2.tar.bz2 txr-1fa1eb6201a277b037f047214c4a97f34a6aeba2.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); |