summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-28 13:43:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-28 13:43:14 -0700
commit3692b3b96af9159368a7bfe63798bb67ff90367f (patch)
treeb4a47044ac2290af45edb7e9554629b063f5246e
parent549d997bab774883d5521dddf71b846815a33ee8 (diff)
downloadtxr-3692b3b96af9159368a7bfe63798bb67ff90367f.tar.gz
txr-3692b3b96af9159368a7bfe63798bb67ff90367f.tar.bz2
txr-3692b3b96af9159368a7bfe63798bb67ff90367f.zip
gzio: remove unused variables.
* gzio.c (gzio_stream_print, gzio_get_prop): Remove unused locals.
-rw-r--r--gzio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gzio.c b/gzio.c
index a1948a48..2485201a 100644
--- a/gzio.c
+++ b/gzio.c
@@ -66,7 +66,6 @@ struct cobj_class *gzio_stream_cls;
static void gzio_stream_print(val stream, val out, val pretty,
struct strm_ctx *ctx)
{
- struct gzio_handle *h = coerce(struct gzio_handle *, stream->co.handle);
struct strm_ops *ops = coerce(struct strm_ops *, stream->co.ops);
val name = static_str(ops->name);
val descr = ops->get_prop(stream, name_k);
@@ -399,7 +398,6 @@ static val gzio_get_prop(val stream, val ind)
if (ind == name_k) {
struct strm_ops *ops = coerce(struct strm_ops *, stream->co.ops);
- val name = static_str(ops->name);
return h->descr;
} else if (ind == byte_oriented_k) {
return h->is_byte_oriented ? t : nil;