From 74ecce7e2dd5272a9978970307d288613d1d171e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 10 Mar 2019 14:39:13 +0000 Subject: Media queries: Drop parse debug output. --- src/stylesheet.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/stylesheet.c b/src/stylesheet.c index 934954c..07b9019 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -122,7 +122,7 @@ static css_error css_parse_media_query_handle_event(css_parser_event type, const css_token *tok; lwc_string **strings = pw; - printf("mq event type: %i\n", type); + UNUSED(type); /* Skip @media */ tok = parserutils_vector_iterate(tokens, &idx); @@ -134,27 +134,12 @@ static css_error css_parse_media_query_handle_event(css_parser_event type, assert(tok->type == CSS_TOKEN_S); UNUSED(tok); - printf(" Tokens:\n"); - while ((tok = parserutils_vector_iterate(tokens, &idx)) != NULL) { - if (tok->idata != NULL) { - printf(" - (%i) %s\n", - tok->type, - lwc_string_data(tok->idata)); - } else { - printf(" - (%i)\n", tok->type); - } - } - idx = 2; - err = css__mq_parse_media_list(strings, tokens, &idx, &media); if (err != CSS_OK) { - printf("Error parsing mq\n"); return CSS_OK; } - printf("PARSED MQ!!!!!!!\n"); css__mq_query_destroy(media); - return CSS_OK; } @@ -193,7 +178,6 @@ static css_error css_parse_media_query(lwc_string **strings, return err; } - printf("try parsing a mq\n"); err = css__parser_parse_chunk(parser, (const uint8_t *)"@media ", strlen("@media ")); -- cgit v1.2.3