summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-04-14 09:38:29 +0300
committerJiaqing Zhao <jiaqing.zhao@intel.com>2022-04-15 19:19:36 +0300
commit2bf0e923c45e340a3acf5a330b7c762f337c7b4d (patch)
treef470445c3933fe3cf886f0a0cc035b1f20a40474 /redfish-core/lib/ethernet.hpp
parent82818b926d3f2749b292a237826938cd3dad77f2 (diff)
downloadbmcweb-2bf0e923c45e340a3acf5a330b7c762f337c7b4d.tar.xz
ethernet: Remove unused SendHostNameEnabled property
Remove EthernetInterfaceData.SendHostNameEnabled as it is defined but never used excepting reading it from DBus. Tested: Build pass. Change-Id: Ib64792b5842a1e8fb95e3a38d40f11797cfb5641 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 3b2ae75516..7986c6f3c7 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -83,7 +83,6 @@ struct EthernetInterfaceData
bool DNSEnabled;
bool NTPEnabled;
bool HostNameEnabled;
- bool SendHostNameEnabled;
bool linkUp;
bool nicEnabled;
std::string DHCPEnabled;
@@ -391,16 +390,6 @@ inline bool
ethData.HostNameEnabled = *hostNameEnabled;
}
}
- else if (propertyPair.first == "SendHostNameEnabled")
- {
- const bool* sendHostNameEnabled =
- std::get_if<bool>(&propertyPair.second);
- if (sendHostNameEnabled != nullptr)
- {
- ethData.SendHostNameEnabled =
- *sendHostNameEnabled;
- }
- }
}
}
}