ppp: inline and drop trivial function remove_timeout_handler()

(cherry picked from commit 0f16649ba2)
This commit is contained in:
Thomas Haller 2017-06-09 13:57:47 +02:00
parent 5e656b5872
commit 620adbcc7b

View file

@ -178,14 +178,6 @@ monitor_stats (NMPPPManager *manager)
/*****************************************************************************/
static void
remove_timeout_handler (NMPPPManager *manager)
{
NMPPPManagerPrivate *priv = NM_PPP_MANAGER_GET_PRIVATE (manager);
nm_clear_g_source (&priv->ppp_timeout_handler);
}
static void
cancel_get_secrets (NMPPPManager *self)
{
@ -415,7 +407,7 @@ impl_ppp_manager_set_ip4_config (NMPPPManager *manager,
_LOGI ("(IPv4 Config Get) reply received.");
remove_timeout_handler (manager);
nm_clear_g_source (&priv->ppp_timeout_handler);
config = nm_ip4_config_new (nm_platform_link_get_ifindex (NM_PLATFORM_GET, priv->ip_iface));
@ -511,7 +503,7 @@ impl_ppp_manager_set_ip6_config (NMPPPManager *manager,
_LOGI ("(IPv6 Config Get) reply received.");
remove_timeout_handler (manager);
nm_clear_g_source (&priv->ppp_timeout_handler);
config = nm_ip6_config_new (nm_platform_link_get_ifindex (NM_PLATFORM_GET, priv->ip_iface));