From patchwork Tue Jun 19 18:42:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 139237 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5556479lji; Tue, 19 Jun 2018 11:42:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwrV0oc8vm6wpjHzsCbXi0M6Q+Ho9yKte1T8R8Gvg8UDqKXI3yyF+ZKoRYhIHwvTfXeS8M X-Received: by 2002:aca:1013:: with SMTP id 19-v6mr9551625oiq.317.1529433762145; Tue, 19 Jun 2018 11:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529433762; cv=none; d=google.com; s=arc-20160816; b=chb9PF8ds1DX201uychAIuGyvDHz8ehzwzyoWK66VaRi1SfNHS1SPbJvH7jvVHz+i4 4m7t6n7n4vlSlKrn/32i9MCnUUWR7HHK4AJihHdaKqJLMRrUHYTtwoQiney3N0v8qora 8motFtjYwW8fANgCwt1uDTZWdot6a75pAFL8eAqkVN/mzG91aeNCTDxyjZ4ofsuSoNuw ooZOQi/ctN/OPzPEmIx3W+Z1eps3Rsz1dyXv1nNRpfZaVkcCatmVEXZsgfpqVVlUGUix 0sOFiDZI/KLUvuExFsPkmhUdvrhpWHptw09qRVirJmc/IPwaEU8hCwG+FBIBMC/GclhQ vO4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=g2OpewNLDK0hoH7Msf0iYoUdSv24gTaGmQNr6lLsAT0=; b=CzbR1kbw+K1xrUqS4VX8fkmp6+TZgred23yQIeWOriyPHgkLzcQAdvzh+MrJ1LB1QP 4WXdwr2lwIfSdXQC4xT4alOF/OQHO3b28VJjJyD+zCy/Rd/vHmoR5RSycougZ9ClD57V UqU2PwCNdLk01alnL0fu3C5NK+3OG14M7wjm1gARVdY2St5I5l5UycyQsjHZwyGugQJD M9Ttl+tvxRP6uFBsOKOMzZYvDAZkkiNbpz4eO8DaJ8rr+NsUyu+D1COl1FG/iu2ixeQ0 ZLib/M0SVmNS4vVbFxSmo2evfokcZkH4o9wIbry0uz5r/h5tKYTr9JmoryirMXwHlDN/ O/+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id f137-v6si123879oib.100.2018.06.19.11.42.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 11:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AC29D811C0; Tue, 19 Jun 2018 18:42:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C9A51001646; Tue, 19 Jun 2018 18:42:38 +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 CC7DB3F7FE; Tue, 19 Jun 2018 18:42:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w5JIgDWT026860 for ; Tue, 19 Jun 2018 14:42:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6AB5A215670B; Tue, 19 Jun 2018 18:42:13 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.bos.redhat.com (dhcp-17-157.bos.redhat.com [10.18.17.157]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D4192156700; Tue, 19 Jun 2018 18:42:13 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Tue, 19 Jun 2018 14:42:07 -0400 Message-Id: <841c8e100dd2de70abc9aedd686c7222b542db43.1529433727.git.crobinso@redhat.com> In-Reply-To: <841c8e100dd2de70abc9aedd686c7222b542db43.1529433703.git.crobinso@redhat.com> References: <841c8e100dd2de70abc9aedd686c7222b542db43.1529433703.git.crobinso@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] conf: Remove unused virDomainDefNewFull 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: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 19 Jun 2018 18:42:40 +0000 (UTC) The last usages were removed with the xend driver in 1dac5fbbbb0 Signed-off-by: Cole Robinson --- src/conf/domain_conf.c | 22 ---------------------- src/conf/domain_conf.h | 3 --- src/libvirt_private.syms | 1 - 3 files changed, 26 deletions(-) -- 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 522e0c2bf3..f0b604e125 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -3241,28 +3241,6 @@ virDomainDefNew(void) } -virDomainDefPtr -virDomainDefNewFull(const char *name, - const unsigned char *uuid, - int id) -{ - virDomainDefPtr def; - - if (!(def = virDomainDefNew())) - return NULL; - - if (VIR_STRDUP(def->name, name) < 0) { - VIR_FREE(def); - return NULL; - } - - memcpy(def->uuid, uuid, VIR_UUID_BUFLEN); - def->id = id; - - return def; -} - - void virDomainObjAssignDef(virDomainObjPtr domain, virDomainDefPtr def, bool live, diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 6344c02d1c..8cefef535a 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -2919,9 +2919,6 @@ virDomainChrSourceDefNew(virDomainXMLOptionPtr xmlopt); virDomainChrDefPtr virDomainChrDefNew(virDomainXMLOptionPtr xmlopt); virDomainDefPtr virDomainDefNew(void); -virDomainDefPtr virDomainDefNewFull(const char *name, - const unsigned char *uuid, - int id); void virDomainObjAssignDef(virDomainObjPtr domain, virDomainDefPtr def, diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index ea24f2847c..98913a577a 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -287,7 +287,6 @@ virDomainDefMaybeAddController; virDomainDefMaybeAddInput; virDomainDefNeedsPlacementAdvice; virDomainDefNew; -virDomainDefNewFull; virDomainDefParseFile; virDomainDefParseNode; virDomainDefParseString;