From 3692b3b96af9159368a7bfe63798bb67ff90367f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 28 May 2022 13:43:14 -0700 Subject: gzio: remove unused variables. * gzio.c (gzio_stream_print, gzio_get_prop): Remove unused locals. --- gzio.c | 2 -- 1 file changed, 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; -- cgit v1.2.3