X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Furi.c;h=0f20c61b8eb13efe51f7c2185a0e1623b74995aa;hb=c585b4b94a2f517485cdf1c2f3efe8d26e44b05d;hp=a2a5038deb54d39df0aabe297af11b0644fa6005;hpb=7aa6679a7ac0f0935dfbe63f43f1901bc2395b16;p=lttng-tools.git diff --git a/src/common/uri.c b/src/common/uri.c index a2a5038de..0f20c61b8 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2012 - David Goulet + * Copyright (C) 2012 David Goulet * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _LGPL_SOURCE @@ -266,22 +256,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