summaryrefslogtreecommitdiff
path: root/src/platform/nm-linux-platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/nm-linux-platform.c')
-rw-r--r--src/platform/nm-linux-platform.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 7cc90b6790..c13995e6da 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -2491,33 +2491,6 @@ delayed_action_handle_idle (gpointer user_data)
}
static void
-delayed_action_clear_REFRESH_LINK (NMPlatform *platform, int ifindex)
-{
- NMLinuxPlatformPrivate *priv;
- gssize idx;
- gpointer user_data;
-
- if (ifindex <= 0)
- return;
-
- priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
- if (!NM_FLAGS_HAS (priv->delayed_action.flags, DELAYED_ACTION_TYPE_REFRESH_LINK))
- return;
-
- user_data = GINT_TO_POINTER (ifindex);
-
- idx = _nm_utils_ptrarray_find_first (priv->delayed_action.list_refresh_link->pdata, priv->delayed_action.list_refresh_link->len, user_data);
- if (idx < 0)
- return;
-
- _LOGt_delayed_action (DELAYED_ACTION_TYPE_REFRESH_LINK, user_data, "clear");
-
- g_ptr_array_remove_index_fast (priv->delayed_action.list_refresh_link, idx);
- if (priv->delayed_action.list_refresh_link->len == 0)
- priv->delayed_action.flags &= ~DELAYED_ACTION_TYPE_REFRESH_LINK;
-}
-
-static void
delayed_action_schedule (NMPlatform *platform, DelayedActionType action_type, gpointer user_data)
{
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
@@ -3118,7 +3091,6 @@ event_notification (struct nl_msg *msg, gpointer user_data)
_LOGt ("delayed-deletion: clear delayed deletion of protected object %s", nmp_object_to_string (obj, NMP_OBJECT_TO_STRING_ID, NULL, 0));
g_hash_table_insert (priv->delayed_deletion, nmp_object_ref (obj), NULL);
}
- delayed_action_clear_REFRESH_LINK (platform, obj->link.ifindex);
}
/* fall-through */
case RTM_NEWADDR: