From nobody Sun Feb 8 19:56:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1628177714; cv=none; d=zohomail.com; s=zohoarc; b=iNUQ47EfCvUjLBzrfH8OdDQeb+VdPYyX8ypNbIwFupm+9k19hpjhSoSoMvADNO3SsJgyClOF+GBLcghfV9PBzaMBMB4U7RxyabDwmeLuJZT0Tbfi3H/kmjB+Sy4uXjeqvF62KcP2KW7glNLPtz18YeaVUHM/By8+aB8i03ypjTo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628177714; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=hSqTkGlh5e9u2yJ+ACD7Bu1pBfefkGOUPwenJN3cVJo=; b=CznIIm/jXK9yO5MGBX2SdoW4nOnxZnEnhHffncLMAA2dJstY+YIB7i9MVS+c34T5xsn2f+n1pfhYejuBxnkWVEgcyetHu3Js4YjR57vwiHH2DtA2LHTAVERYguVR1MEPI+W9krUCkQnzMZj57EiUIXZszX63YH6FQieqLgQtaVg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1628177714766611.3331695079194; Thu, 5 Aug 2021 08:35:14 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-b8W0D30nNh2VZP-nqlSNeQ-1; Thu, 05 Aug 2021 11:35:12 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B66E801AC0; Thu, 5 Aug 2021 15:35:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 343A760E1C; Thu, 5 Aug 2021 15:35:06 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id EBF33181A6E4; Thu, 5 Aug 2021 15:35:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 175FZ1nU027841 for ; Thu, 5 Aug 2021 11:35:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6921E1ACBB; Thu, 5 Aug 2021 15:35:01 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id BFBC05D6B1 for ; Thu, 5 Aug 2021 15:35:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628177713; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hSqTkGlh5e9u2yJ+ACD7Bu1pBfefkGOUPwenJN3cVJo=; b=gLw9B6X7j86YYIxR+IG5tXTcSlPKQh5tcE0HwZ811NSd9TFKo3eEu3/NEZvxDs5UfcPDJ5 Cfn3fECM/gJBCVojBqnUKGwrjW38En/77BK9eJmudP5+iPGXmEBwKgF0kGsgZeFQ6y4KNT w9Yq2luKSYkiJfn7BIsg8CSx3hi/hWU= X-MC-Unique: b8W0D30nNh2VZP-nqlSNeQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 13/13] util: virstring: Remove unused virStringListFreeCount Date: Thu, 5 Aug 2021 17:34:29 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628177715698100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 - src/util/virstring.c | 23 ----------------------- src/util/virstring.h | 3 --- 3 files changed, 27 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index fd02b27c51..e177591fa8 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -3288,7 +3288,6 @@ virStringHasControlChars; virStringHasSuffix; virStringIsEmpty; virStringIsPrintable; -virStringListFreeCount; virStringListMerge; virStringMatch; virStringMatchesNameSuffix; diff --git a/src/util/virstring.c b/src/util/virstring.c index a2c07e5c17..f416fed3c5 100644 --- a/src/util/virstring.c +++ b/src/util/virstring.c @@ -70,29 +70,6 @@ virStringListMerge(char ***dst, } -/** - * virStringListFreeCount: - * @strings: array of strings to free - * @count: number of elements in the array - * - * Frees a string array of @count length. - */ -void -virStringListFreeCount(char **strings, - size_t count) -{ - size_t i; - - if (!strings) - return; - - for (i =3D 0; i < count; i++) - g_free(strings[i]); - - g_free(strings); -} - - /* Like strtol, but produce an "int" result, and check more carefully. Return 0 upon success; return -1 to indicate failure. When END_PTR is NULL, the byte after the final valid digit must be NUL. diff --git a/src/util/virstring.h b/src/util/virstring.h index 7cc1d8c55f..ca81889c9b 100644 --- a/src/util/virstring.h +++ b/src/util/virstring.h @@ -25,9 +25,6 @@ int virStringListMerge(char ***dst, char ***src); -void virStringListFreeCount(char **strings, - size_t count); - int virStrToLong_i(char const *s, char **end_ptr, int base, --=20 2.31.1