From 81ae621c06cb0f5649560a0e57580850bc8c09e5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Dec 2018 16:41:25 -0500 Subject: Remove old URI parse debug logging code --- src/uri.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src') diff --git a/src/uri.c b/src/uri.c index 70b13717..0ee9dade 100644 --- a/src/uri.c +++ b/src/uri.c @@ -19,8 +19,6 @@ #include #include -// #define URI_DEBUG 1 - const uint8_t* serd_uri_to_path(const uint8_t* uri) { @@ -110,26 +108,6 @@ serd_uri_string_has_scheme(const uint8_t* utf8) return false; } -#ifdef URI_DEBUG -static void -serd_uri_dump(const SerdURI* uri, FILE* file) -{ -#define PRINT_PART(range, name) \ - if (range.buf) { \ - fprintf(stderr, " " name " = "); \ - fwrite((range).buf, 1, (range).len, stderr); \ - fprintf(stderr, "\n"); \ - } - - PRINT_PART(uri->scheme, "scheme "); - PRINT_PART(uri->authority, "authority"); - PRINT_PART(uri->path_base, "path_base"); - PRINT_PART(uri->path, "path "); - PRINT_PART(uri->query, "query "); - PRINT_PART(uri->fragment, "fragment "); -} -#endif - SerdStatus serd_uri_parse(const uint8_t* utf8, SerdURI* out) { @@ -232,12 +210,6 @@ fragment: } end: - #ifdef URI_DEBUG - fprintf(stderr, "PARSE URI <%s>\n", utf8); - serd_uri_dump(out, stderr); - fprintf(stderr, "\n"); - #endif - return SERD_SUCCESS; } @@ -374,16 +346,6 @@ serd_uri_resolve(const SerdURI* r, const SerdURI* base, SerdURI* t) t->scheme = base->scheme; t->fragment = r->fragment; } - - #ifdef URI_DEBUG - fprintf(stderr, "## RESOLVE URI\n# BASE\n"); - serd_uri_dump(base, stderr); - fprintf(stderr, "# URI\n"); - serd_uri_dump(r, stderr); - fprintf(stderr, "# RESULT\n"); - serd_uri_dump(t, stderr); - fprintf(stderr, "\n"); - #endif } /** Write the path of `uri` starting at index `i` */ -- cgit v1.2.1