From: Simon Marchi Date: Mon, 25 Nov 2019 20:28:33 +0000 (-0500) Subject: Remove unused function uri_create X-Git-Tag: v2.12.0-rc1~203 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e6f771201880c4a4dc93d03f7e4c60105d12f9dc;p=lttng-tools.git Remove unused function uri_create Fixes: CC uri.lo /home/smarchi/src/lttng-tools/src/common/uri.c:273:19: error: no previous declaration for ‘uri_create’ [-Werror=missing-declarations] struct lttng_uri *uri_create(void) ^~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I18a58391842c3fba1fa3dd60cf5fe3215280f95a Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/uri.c b/src/common/uri.c index a2a5038de..c735e856f 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -266,22 +266,6 @@ void uri_free(struct lttng_uri *uri) free(uri); } -/* - * Return an allocated URI. - */ -LTTNG_HIDDEN -struct lttng_uri *uri_create(void) -{ - struct lttng_uri *uri; - - uri = zmalloc(sizeof(struct lttng_uri)); - if (uri == NULL) { - PERROR("zmalloc uri"); - } - - return uri; -} - /* * Parses a string URI to a lttng_uri. This function can potentially return * more than one URI in uris so the size of the array is returned and uris is