ethernet_interface: Remove unused function
All references have since been deleted.
Change-Id: I69943f33c6c555f5cc596bb2f7609c4873b21be9
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ethernet_interface.cpp b/src/ethernet_interface.cpp
index 711e3b5..44f46f6 100644
--- a/src/ethernet_interface.cpp
+++ b/src/ethernet_interface.cpp
@@ -189,14 +189,6 @@
cur == EthernetInterface::DHCPConf::v4);
}
-bool EthernetInterface::dhcpToBeEnabled(IP::Protocol family,
- const std::string& nextDHCPState)
-{
- return ((nextDHCPState == "true") ||
- ((nextDHCPState == "ipv6") && (family == IP::Protocol::IPv6)) ||
- ((nextDHCPState == "ipv4") && (family == IP::Protocol::IPv4)));
-}
-
bool EthernetInterface::originIsManuallyAssigned(IP::AddressOrigin origin)
{
return (
diff --git a/src/ethernet_interface.hpp b/src/ethernet_interface.hpp
index a4a98d1..8928455 100644
--- a/src/ethernet_interface.hpp
+++ b/src/ethernet_interface.hpp
@@ -353,13 +353,6 @@
*/
bool dhcpIsEnabled(IP::Protocol protocol);
- /** @brief Determines if DHCP will be active following next reconfig
- * @param[in] protocol - Either IPv4 or IPv6
- * @param[in] nextDHCPState - The new DHCP mode to take affect
- * @returns true/false value if DHCP is active for the input protocol
- */
- bool dhcpToBeEnabled(IP::Protocol family, const std::string& nextDHCPState);
-
/** @brief Determines if the address is manually assigned
* @param[in] origin - The origin entry of the IP::Address
* @returns true/false value if the address is static