From 63f0ff1b497c51e8a153305518912ce631a5bb2c Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Fri, 30 Sep 2016 18:36:02 +0100 Subject: [PATCH] NetworkInterface: remove dhcp and static ip methods These use cases are already supported by NetworkInterface class via set_dhcp, and set_network. --- features/net/network-socket/NetworkInterface.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/features/net/network-socket/NetworkInterface.h b/features/net/network-socket/NetworkInterface.h index 7e6ef4d0cc..92e8eb4693 100644 --- a/features/net/network-socket/NetworkInterface.h +++ b/features/net/network-socket/NetworkInterface.h @@ -94,22 +94,6 @@ public: */ virtual int connect() = 0; - /** Sends DHCP request - * - * @param timeout Request timeout in ms - * @return NSAPI_ERROR_OK in case of success, error code otherwise - */ - virtual int start_dhcp(unsigned int timeout = 15000) = 0; - - /** Starts the interface with static IP - * - * @param ip Static IP to use (in XYZ.XYZ.XYZ.XYZ format) - * @param netmask Network mask to use (in XYZ.XYZ.XYZ.XYZ format) - * @param gw Gateway IP address (in XYZ.XYZ.XYZ.XYZ format) - * @return NSAPI_ERROR_OK in case of success, error code otherwise - */ - virtual int start_static_ip(const char *ip, const char *netmask, const char *gw) = 0; - /** Stop the interface * * @return 0 on success, negative error code on failure