From nobody Mon Dec 15 03:10:18 2025 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=1658846488; cv=none; d=zohomail.com; s=zohoarc; b=IT5dYzo4v9uebINoJq+7bL+TErdiL+ofDbvPPRmTw/wSDJogGoPRkMctqr7+7oxziB6x83f9fZ8AZmG81/mbDUGIFVZUO94l3rrhp0nK0eFBz2RacvCtuSZsKH69hfgpdLP5BnZqg1bCzRx81oIB20WyvgOk7UTBkRgF4gYPSrc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658846488; 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=MTFBStLdYsSxor8Lywd6RNu8tCWbkva6L1tK/7rZbmA=; b=B1x0jgbxbxVJqqKQ21FWAVq/EBtHslJQCVHXQuBV52tuSKNCaJB7wcjU2JpAL0MaC41gY7a5UvIldtR/MZZ8x7p6MNxPeZft9W+Wfv9CLV+Sy/Fq3rBhpJ5GNUb73359Q2tXLATac5zL52WW2yeRVXZsJ6DQBtM0dBiIdd2H9EI= 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 1658846488820487.3544619676537; Tue, 26 Jul 2022 07:41:28 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-649-5tpOWulIMki3PO3MjfputA-1; Tue, 26 Jul 2022 10:39:30 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 13B0D811E7A; Tue, 26 Jul 2022 14:39:09 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id F26491415118; Tue, 26 Jul 2022 14:39:08 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 735241947BBB; Tue, 26 Jul 2022 14:39:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9A6101947063 for ; Tue, 26 Jul 2022 14:39:00 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 867FF400DFD7; Tue, 26 Jul 2022 14:39:00 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0678240CF8EE for ; Tue, 26 Jul 2022 14:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658846487; 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=MTFBStLdYsSxor8Lywd6RNu8tCWbkva6L1tK/7rZbmA=; b=VQCOv7q6OnLOPij3CiU9veJ7SohUmwyB96maYkuEHEb8A9YoFK13Zp9wKsUNpV1TfVnpMc jtMMpUzP89EMOkHC6oOv4/QiJormHGzoMHmUWTKRhhf+kVVfmmE0aLE3v+Hg4l12HNr3LC FsJB1GtUZ0pL6m8yZUjALHuLAPZKttk= X-MC-Unique: 5tpOWulIMki3PO3MjfputA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 61/80] qemu: block: Remove unused qemuBlockStorageSourceChainDetachPrepareLegacy Date: Tue, 26 Jul 2022 16:37:39 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 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: 1658846489808100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- src/qemu/qemu_block.c | 26 -------------------------- src/qemu/qemu_block.h | 3 --- 2 files changed, 29 deletions(-) diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c index 6e643598bc..a5d9f47ec4 100644 --- a/src/qemu/qemu_block.c +++ b/src/qemu/qemu_block.c @@ -1657,32 +1657,6 @@ qemuBlockStorageSourceChainDetachPrepareBlockdev(vir= StorageSource *src) } -/** - * qemuBlockStorageSourceChainDetachPrepareLegacy - * @src: storage source chain to remove - * @driveAlias: Alias of the 'drive' backend (always consumed) - * - * Prepares qemuBlockStorageSourceChainData *for detaching @src and its - * backingStore if -drive was used. - */ -qemuBlockStorageSourceChainData * -qemuBlockStorageSourceChainDetachPrepareDrive(virStorageSource *src, - char *driveAlias) -{ - g_autoptr(qemuBlockStorageSourceAttachData) backend =3D NULL; - g_autoptr(qemuBlockStorageSourceChainData) data =3D NULL; - - data =3D g_new0(qemuBlockStorageSourceChainData, 1); - - if (!(backend =3D qemuBlockStorageSourceDetachPrepare(src, driveAlias)= )) - return NULL; - - VIR_APPEND_ELEMENT(data->srcdata, data->nsrcdata, backend); - - return g_steal_pointer(&data); -} - - /** * qemuBlockStorageSourceChainDetachPrepareChardev * @src: storage source chain to remove diff --git a/src/qemu/qemu_block.h b/src/qemu/qemu_block.h index 422c1a0deb..a20a5e8a61 100644 --- a/src/qemu/qemu_block.h +++ b/src/qemu/qemu_block.h @@ -150,9 +150,6 @@ qemuBlockStorageSourceChainDataFree(qemuBlockStorageSou= rceChainData *data); qemuBlockStorageSourceChainData * qemuBlockStorageSourceChainDetachPrepareBlockdev(virStorageSource *src); qemuBlockStorageSourceChainData * -qemuBlockStorageSourceChainDetachPrepareDrive(virStorageSource *src, - char *driveAlias); -qemuBlockStorageSourceChainData * qemuBlockStorageSourceChainDetachPrepareChardev(char *chardevAlias); int --=20 2.36.1