From 85d97f05f6f8e4c1d73cd2bb096806839d16f3b0 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 31 10月 2020 10:27:16 +0800
Subject: [PATCH] Pc identifier Mac address issues #108 & #107

---
 src/library/os/cpu_info.hpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/library/os/cpu_info.hpp b/src/library/os/cpu_info.hpp
index a35de10..c837493 100644
--- a/src/library/os/cpu_info.hpp
+++ b/src/library/os/cpu_info.hpp
@@ -10,14 +10,12 @@
 #include <string>
 namespace license {
 namespace os {
-typedef enum { BARE_TO_METAL, VMWARE, VIRTUALBOX, V_XEN, KVM, HV, V_OTHER } VIRTUALIZATION_DETAIL;
 
 /**
  * Cpu informations
  */
 class CpuInfo {
 private:
-	bool is_hypervisor_set() const;
 	const std::string m_vendor;
 	const std::string m_brand;
 public:
@@ -27,11 +25,10 @@
 	 * Detect Virtual machine using hypervisor bit or the cpu vendor name.
 	 * @return true if the cpu is detected to be a virtual cpu
 	 */
-	bool cpu_virtual() const;
 	uint32_t model() const;
+	bool is_hypervisor_set() const;
 	const std::string& vendor() const { return m_vendor; }
 	const std::string& brand() const { return m_brand; }
-	VIRTUALIZATION_DETAIL virtualization_details() const;
 };
 
 }  // namespace os

--
Gitblit v1.9.1