ipaddress: Remove obsolete gateway parameter

Change-Id: I0eb7c84951c2277a5c69fb35eb989e7e19bd897d
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ipaddress.cpp b/src/ipaddress.cpp
index ac9c0b0..6aebc94 100644
--- a/src/ipaddress.cpp
+++ b/src/ipaddress.cpp
@@ -38,17 +38,16 @@
 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,
+IPAddress::IPAddress(sdbusplus::bus_t& bus, stdplus::const_zstring objPath,
                      EthernetInterface& parent, IP::Protocol type,
-                     const std::string& ipaddress, IP::AddressOrigin origin,
-                     uint8_t prefixLength, const std::string& gateway) :
-    IPIfaces(bus, objPath, IPIfaces::action::defer_emit),
+                     std::string_view ipaddress, IP::AddressOrigin origin,
+                     uint8_t prefixLength) :
+    IPIfaces(bus, objPath.c_str(), IPIfaces::action::defer_emit),
     parent(parent)
 {
 
-    IP::address(ipaddress);
+    IP::address(std::string(ipaddress));
     IP::prefixLength(prefixLength);
-    IP::gateway(gateway);
     IP::type(type);
     IP::origin(origin);