summaryrefslogtreecommitdiff
path: root/utils/nsurl/private.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-03-11 11:02:40 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-03-11 11:02:40 +0000
commit7d06021e21784ffec6a8925423b3a790ed16c63f (patch)
tree910f79694af2d5b957e51ce3420f40cefd8b6555 /utils/nsurl/private.h
parent2c549b28fb508b859702f0c2e1122c6ccd3aa34c (diff)
downloadnetsurf-7d06021e21784ffec6a8925423b3a790ed16c63f.tar.gz
netsurf-7d06021e21784ffec6a8925423b3a790ed16c63f.tar.bz2
nsurl: Make nusrl component dump more usable.
This is only a development aid, and not something that should be called in production.
Diffstat (limited to 'utils/nsurl/private.h')
-rw-r--r--utils/nsurl/private.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/utils/nsurl/private.h b/utils/nsurl/private.h
index 06f143f4d..08973e573 100644
--- a/utils/nsurl/private.h
+++ b/utils/nsurl/private.h
@@ -174,49 +174,4 @@ static inline void nsurl__components_destroy(struct nsurl_components *c)
lwc_string_unref(c->fragment);
}
-
-
-#ifdef NSURL_DEBUG
-/**
- * Dump a NetSurf URL's internal components
- *
- * \param url The NetSurf URL to dump components of
- */
-static inline void nsurl__dump(const nsurl *url)
-{
- if (url->components.scheme)
- NSLOG(netsurf, DEEPDEBUG, " Scheme: %s",
- lwc_string_data(url->components.scheme));
-
- if (url->components.username)
- NSLOG(netsurf, DEEPDEBUG, "Username: %s",
- lwc_string_data(url->components.username));
-
- if (url->components.password)
- NSLOG(netsurf, DEEPDEBUG, "Password: %s",
- lwc_string_data(url->components.password));
-
- if (url->components.host)
- NSLOG(netsurf, DEEPDEBUG, " Host: %s",
- lwc_string_data(url->components.host));
-
- if (url->components.port)
- NSLOG(netsurf, DEEPDEBUG, " Port: %s",
- lwc_string_data(url->components.port));
-
- if (url->components.path)
- NSLOG(netsurf, DEEPDEBUG, " Path: %s",
- lwc_string_data(url->components.path));
-
- if (url->components.query)
- NSLOG(netsurf, DEEPDEBUG, " Query: %s",
- lwc_string_data(url->components.query));
-
- if (url->components.fragment)
- NSLOG(netsurf, DEEPDEBUG, "Fragment: %s",
- lwc_string_data(url->components.fragment));
-}
-#endif
-
-
#endif