summaryrefslogtreecommitdiff
path: root/clients/tui/nmt-route-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tui/nmt-route-table.c')
-rw-r--r--clients/tui/nmt-route-table.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/clients/tui/nmt-route-table.c b/clients/tui/nmt-route-table.c
index a63f52053e..79c543de6a 100644
--- a/clients/tui/nmt-route-table.c
+++ b/clients/tui/nmt-route-table.c
@@ -163,12 +163,10 @@ remove_route (NmtWidgetList *list,
gpointer table)
{
NmtRouteTablePrivate *priv = NMT_ROUTE_TABLE_GET_PRIVATE (table);
- NMIPRoute *route;
if (num >= priv->routes->len)
return;
- route = priv->routes->pdata[num];
g_ptr_array_remove_index (priv->routes, num);
nmt_widget_list_set_length (list, priv->routes->len);