Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35c62519 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Remove dead code

Remove unnecessary DHCP properties

Change-Id: I27b5d0a2d8fd67c911d04bb2d18dc1b3f10e7c2a
parent 59836bd2
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -242,13 +242,6 @@ int dhcp_do_request(const char *interface,
                dns1, dns2, server, lease, vendorInfo, domain) == -1) {
            return -1;
        }

        /* copy dns data to system properties - TODO - remove this after we have async
         * notification of renewal's */
        snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", interface);
        property_set(dns_prop_name, *dns1 ? ipaddr_to_string(*dns1) : "");
        snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", interface);
        property_set(dns_prop_name, *dns2 ? ipaddr_to_string(*dns2) : "");
        return 0;
    } else {
        snprintf(errmsg, sizeof(errmsg), "DHCP result was %s", prop_value);