ipaddress: Remove set property overrides
This is now handled for us in the dbus interface.
Change-Id: I3cb78acf773f5327c3c51f87a5390c843f27c5cd
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ipaddress.cpp b/src/ipaddress.cpp
index becb5b3..85e5bca 100644
--- a/src/ipaddress.cpp
+++ b/src/ipaddress.cpp
@@ -37,8 +37,6 @@
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
-using NotAllowed = sdbusplus::xyz::openbmc_project::Common::Error::NotAllowed;
-using Reason = xyz::openbmc_project::Common::NotAllowed::REASON;
IPAddress::IPAddress(sdbusplus::bus_t& bus, const char* objPath,
EthernetInterface& parent, IP::Protocol type,
@@ -57,26 +55,7 @@
// Emit deferred signal.
emit_object_added();
}
-std::string IPAddress::address(std::string /*ipAddress*/)
-{
- elog<NotAllowed>(Reason("Property update is not allowed"));
-}
-uint8_t IPAddress::prefixLength(uint8_t /*value*/)
-{
- elog<NotAllowed>(Reason("Property update is not allowed"));
-}
-std::string IPAddress::gateway(std::string /*gateway*/)
-{
- elog<NotAllowed>(Reason("Property update is not allowed"));
-}
-IP::Protocol IPAddress::type(IP::Protocol /*type*/)
-{
- elog<NotAllowed>(Reason("Property update is not allowed"));
-}
-IP::AddressOrigin IPAddress::origin(IP::AddressOrigin /*origin*/)
-{
- elog<NotAllowed>(Reason("Property update is not allowed"));
-}
+
void IPAddress::delete_()
{
if (origin() != IP::AddressOrigin::Static)