From nobody Mon Feb 9 20:34:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1612600503; cv=none; d=zohomail.com; s=zohoarc; b=lRBCigqBISO6epmzrjWGAGOmuY/tV2T8mlTIr6rC674QEz14Fx7Y7fpjsWWC7E6bvuowHvlCUrv2BG4z2GY5PcN5UjhocTMXlKT/rizMVFcSCP2R4Tji0XdKNXW5TMggO6UN7MuAP0Ix1cI5o0eyVWRlpnEaJe8eNz05DxNovwE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612600503; 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=UlnMwUkpwjvHyXUwGsQDnSKDs158TScnezDZ3omA3GE=; b=f7LSvamk2NdLryai/q0IFg1/vfUapotAmNyU4q/qUrPgyZYizjUCh88WZRYkmDvOhTVjwncxJS3acnwc9VHvo/V+VVXA/ROlz62lZgPM3E4CBuvzGOBnQHaJ6RHze9VQMXl7mDpD2GhKYL+Vzi5lOU+t7QISv1Ef6qqWeX+ZbFI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612600503416103.18822120348852; Sat, 6 Feb 2021 00:35:03 -0800 (PST) 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-5-fLaoIq8kNzmYB75gItAnQw-1; Sat, 06 Feb 2021 03:34:59 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 053CF107ACF3; Sat, 6 Feb 2021 08:34:54 +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 D9EAF72F88; Sat, 6 Feb 2021 08:34:53 +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 A1AEA18077D7; Sat, 6 Feb 2021 08:34:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1168YpBB005528 for ; Sat, 6 Feb 2021 03:34:51 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8322660C8F; Sat, 6 Feb 2021 08:34:51 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BE1260C79 for ; Sat, 6 Feb 2021 08:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612600502; 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=UlnMwUkpwjvHyXUwGsQDnSKDs158TScnezDZ3omA3GE=; b=Eo7BjOUGo3Jmla8PEHAIES+spXD/0zmnjU0P1cyk9Zv9KFLd6Gg11KpXknuo01DcGZh1h+ g6yG1B5Ck0JQ0Fxk98tNiyZmNrOG27A5nBEuo8UPOiA3KCvYZ6GrqLQMkiCWnoSQkhuh1h Ddes39iyTjR0tNrGLytIHPJlY1Xx0pU= X-MC-Unique: fLaoIq8kNzmYB75gItAnQw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 34/40] util: virstring: Remove virStringListLength Date: Sat, 6 Feb 2021 09:32:56 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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.11 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) Content-Type: text/plain; charset="utf-8" glib provides g_strv_length. Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 - src/util/virstring.c | 11 ----------- src/util/virstring.h | 2 -- 3 files changed, 14 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index ab8cf62552..535776166d 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -3242,7 +3242,6 @@ virStringIsEmpty; virStringIsPrintable; virStringListFreeCount; virStringListJoin; -virStringListLength; virStringListMerge; virStringMatch; virStringMatchesNameSuffix; diff --git a/src/util/virstring.c b/src/util/virstring.c index 1fd61650be..c7276fa7c4 100644 --- a/src/util/virstring.c +++ b/src/util/virstring.c @@ -747,17 +747,6 @@ virStringIsEmpty(const char *str) } -size_t virStringListLength(const char * const *strings) -{ - size_t i =3D 0; - - while (strings && strings[i]) - i++; - - return i; -} - - /** * virStringSortCompare: * diff --git a/src/util/virstring.h b/src/util/virstring.h index 1a15812307..db6f2d4795 100644 --- a/src/util/virstring.h +++ b/src/util/virstring.h @@ -112,8 +112,6 @@ int virStrcpy(char *dest, const char *src, size_t destb= ytes) G_GNUC_WARN_UNUSED_RESULT; #define virStrcpyStatic(dest, src) virStrcpy((dest), (src), sizeof(dest)) -size_t virStringListLength(const char * const *strings); - int virStringSortCompare(const void *a, const void *b); int virStringSortRevCompare(const void *a, const void *b); int virStringToUpper(char **dst, const char *src); --=20 2.29.2