]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove this unused function.
authorRoy Marples <roy@marples.name>
Fri, 1 May 2015 08:12:19 +0000 (08:12 +0000)
committerRoy Marples <roy@marples.name>
Fri, 1 May 2015 08:12:19 +0000 (08:12 +0000)
dhcp.c
dhcp.h

diff --git a/dhcp.c b/dhcp.c
index 1a6aeb9603eca483c028f14d4f5f57a80fd36199..88824f3f4e70ce44b3fd694c8dae345f2bf5c13b 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2405,21 +2405,6 @@ dhcp_arp_conflicted(struct arp_state *astate, const struct arp_msg *amsg)
        }
 }
 
-void
-dhcp_probe(struct interface *ifp)
-{
-       const struct dhcp_state *state;
-       struct arp_state *astate;
-
-       state = D_CSTATE(ifp);
-       if ((astate = arp_new(ifp, &state->addr))) {
-               astate->probed_cb = dhcp_arp_probed;
-               astate->conflicted_cb = dhcp_arp_conflicted;
-               astate->announced_cb = dhcp_arp_announced;
-               arp_probe(astate);
-       }
-}
-
 static void
 dhcp_handledhcp(struct interface *ifp, struct dhcp_message **dhcpp,
     const struct in_addr *from)
diff --git a/dhcp.h b/dhcp.h
index 05ff69f11971e8a0777a715a755fa25b7d9ecf44..008870d99a58ff66047009f643df104caffc5a5d 100644 (file)
--- a/dhcp.h
+++ b/dhcp.h
@@ -282,7 +282,6 @@ void dhcp_stop(struct interface *);
 void dhcp_decline(struct interface *);
 void dhcp_discover(void *);
 void dhcp_inform(struct interface *);
-void dhcp_probe(struct interface *);
 void dhcp_bind(struct interface *, struct arp_state *);
 void dhcp_reboot_newopts(struct interface *, unsigned long long);
 void dhcp_close(struct interface *);