a41c76
From 6ece5388a7fb7fc3c703cd1bc9e214ad411451d8 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <6ece5388a7fb7fc3c703cd1bc9e214ad411451d8@dist-git>
a41c76
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
a41c76
Date: Mon, 3 Feb 2020 18:07:23 +0000
a41c76
Subject: [PATCH] conf: remove unused virCapabilitiesSetHostCPU method
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
a41c76
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
a41c76
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
a41c76
(cherry picked from commit 2ce9474c2a6ba3df4977068dcee35d3fa5468749)
a41c76
a41c76
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1785207
a41c76
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1785211
a41c76
Message-Id: <20200203180726.2203691-3-berrange@redhat.com>
a41c76
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
a41c76
---
a41c76
 src/conf/capabilities.c  | 21 ---------------------
a41c76
 src/conf/capabilities.h  |  6 ------
a41c76
 src/libvirt_private.syms |  1 -
a41c76
 3 files changed, 28 deletions(-)
a41c76
a41c76
diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
a41c76
index 9a39858280..bf1d9936ed 100644
a41c76
--- a/src/conf/capabilities.c
a41c76
+++ b/src/conf/capabilities.c
a41c76
@@ -368,27 +368,6 @@ virCapabilitiesHostNUMAAddCell(virCapsHostNUMAPtr caps,
a41c76
     g_ptr_array_add(caps->cells, cell);
a41c76
 }
a41c76
 
a41c76
-
a41c76
-/**
a41c76
- * virCapabilitiesSetHostCPU:
a41c76
- * @caps: capabilities to extend
a41c76
- * @cpu: CPU definition
a41c76
- *
a41c76
- * Sets host CPU specification
a41c76
- */
a41c76
-int
a41c76
-virCapabilitiesSetHostCPU(virCapsPtr caps,
a41c76
-                          virCPUDefPtr cpu)
a41c76
-{
a41c76
-    if (cpu == NULL)
a41c76
-        return -1;
a41c76
-
a41c76
-    caps->host.cpu = cpu;
a41c76
-
a41c76
-    return 0;
a41c76
-}
a41c76
-
a41c76
-
a41c76
 /**
a41c76
  * virCapabilitiesAllocMachines:
a41c76
  * @machines: machine variants for emulator ('pc', or 'isapc', etc)
a41c76
diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h
a41c76
index f604e7b95e..4a49e94aa5 100644
a41c76
--- a/src/conf/capabilities.h
a41c76
+++ b/src/conf/capabilities.h
a41c76
@@ -258,12 +258,6 @@ virCapabilitiesHostNUMAAddCell(virCapsHostNUMAPtr caps,
a41c76
                                int npageinfo,
a41c76
                                virCapsHostNUMACellPageInfoPtr pageinfo);
a41c76
 
a41c76
-
a41c76
-int
a41c76
-virCapabilitiesSetHostCPU(virCapsPtr caps,
a41c76
-                          virCPUDefPtr cpu);
a41c76
-
a41c76
-
a41c76
 virCapsGuestMachinePtr *
a41c76
 virCapabilitiesAllocMachines(const char *const *names,
a41c76
                              int nnames);
a41c76
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
a41c76
index b97906b852..afa7d4fcae 100644
a41c76
--- a/src/libvirt_private.syms
a41c76
+++ b/src/libvirt_private.syms
a41c76
@@ -77,7 +77,6 @@ virCapabilitiesHostSecModelAddBaseLabel;
a41c76
 virCapabilitiesInitCaches;
a41c76
 virCapabilitiesInitPages;
a41c76
 virCapabilitiesNew;
a41c76
-virCapabilitiesSetHostCPU;
a41c76
 virCapabilitiesSetNetPrefix;
a41c76
 
a41c76
 
a41c76
-- 
a41c76
2.25.0
a41c76