From ffd0a70e4d0ca24934877d40189d6881d227ccb6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Oct 2016 16:17:43 +0200 Subject: css: Remove unused variables. --- source/html/css-apply.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/html') diff --git a/source/html/css-apply.c b/source/html/css-apply.c index 03e61a87..c7b4d545 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -626,7 +626,7 @@ fz_match_css(fz_context *ctx, fz_css_match *match, fz_css *css, fz_xml *node) { fz_css_rule *rule; fz_css_selector *sel; - fz_css_property *prop, *head, *tail; + fz_css_property *prop; const char *s; for (rule = css->rule; rule; rule = rule->next) @@ -649,11 +649,10 @@ fz_match_css(fz_context *ctx, fz_css_match *match, fz_css *css, fz_xml *node) { fz_try(ctx) { - head = tail = prop = fz_parse_css_properties(ctx, css->pool, s); + prop = fz_parse_css_properties(ctx, css->pool, s); while (prop) { add_property(match, prop->name, prop->value, INLINE_SPECIFICITY); - tail = prop; prop = prop->next; } /* We can "leak" the property here, since it is freed along with the pool allocator. */ -- cgit v1.2.3