Skip to content

Commit

Permalink
gdhcp: Remove obsolete dhcpv6 support functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jukkar authored and pfl committed Aug 6, 2013
1 parent 4f3a601 commit 5a46026
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions gdhcp/client.c
Expand Up @@ -2962,18 +2962,6 @@ void g_dhcpv6_client_reset_request(GDHCPClient *dhcp_client)
dhcp_client->last_request = time(NULL);
}

void g_dhcpv6_client_reset_renew(GDHCPClient *dhcp_client)
{
if (dhcp_client == NULL || dhcp_client->type != G_DHCP_IPV6)
return;
}

void g_dhcpv6_client_reset_rebind(GDHCPClient *dhcp_client)
{
if (dhcp_client == NULL || dhcp_client->type != G_DHCP_IPV6)
return;
}

uint16_t g_dhcpv6_client_get_status(GDHCPClient *dhcp_client)
{
if (dhcp_client == NULL || dhcp_client->type != G_DHCP_IPV6)
Expand Down
2 changes: 0 additions & 2 deletions gdhcp/gdhcp.h
Expand Up @@ -179,8 +179,6 @@ int g_dhcpv6_client_set_ia(GDHCPClient *dhcp_client, int index,
int code, uint32_t *T1, uint32_t *T2,
bool add_addresses, const char *address);
void g_dhcpv6_client_reset_request(GDHCPClient *dhcp_client);
void g_dhcpv6_client_reset_renew(GDHCPClient *dhcp_client);
void g_dhcpv6_client_reset_rebind(GDHCPClient *dhcp_client);
void g_dhcpv6_client_set_retransmit(GDHCPClient *dhcp_client);
void g_dhcpv6_client_clear_retransmit(GDHCPClient *dhcp_client);

Expand Down
3 changes: 0 additions & 3 deletions src/dhcpv6.c
Expand Up @@ -1740,8 +1740,6 @@ static void rebind_pd_cb(GDHCPClient *dhcp_client, gpointer user_data)
{
DBG("");

g_dhcpv6_client_reset_rebind(dhcp_client);
g_dhcpv6_client_reset_renew(dhcp_client);
g_dhcpv6_client_clear_retransmit(dhcp_client);

re_pd_cb(dhcp_client, user_data);
Expand Down Expand Up @@ -1829,7 +1827,6 @@ static void renew_pd_cb(GDHCPClient *dhcp_client, gpointer user_data)
{
DBG("");

g_dhcpv6_client_reset_renew(dhcp_client);
g_dhcpv6_client_clear_retransmit(dhcp_client);

re_pd_cb(dhcp_client, user_data);
Expand Down

0 comments on commit 5a46026

Please sign in to comment.