summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src')
-rw-r--r--netspeed/src/backend.c6
-rw-r--r--netspeed/src/backend.h3
-rw-r--r--netspeed/src/netspeed-preferences.c2
-rw-r--r--netspeed/src/netspeed.c4
4 files changed, 3 insertions, 12 deletions
diff --git a/netspeed/src/backend.c b/netspeed/src/backend.c
index baff8f8d..1daca40f 100644
--- a/netspeed/src/backend.c
+++ b/netspeed/src/backend.c
@@ -278,12 +278,6 @@ get_default_route (void)
return NULL;
}
-void
-free_devices_list (GList *list)
-{
- g_list_free_full (list, g_free);
-}
-
/* Frees a DevInfo struct and all the stuff it contains
*/
void
diff --git a/netspeed/src/backend.h b/netspeed/src/backend.h
index 74344836..5f382cd1 100644
--- a/netspeed/src/backend.h
+++ b/netspeed/src/backend.h
@@ -90,9 +90,6 @@ gboolean
is_dummy_device (const char* device);
void
-free_devices_list (GList *list);
-
-void
free_device_info (DevInfo *devinfo);
void
diff --git a/netspeed/src/netspeed-preferences.c b/netspeed/src/netspeed-preferences.c
index 18fc3221..cc52a506 100644
--- a/netspeed/src/netspeed-preferences.c
+++ b/netspeed/src/netspeed-preferences.c
@@ -148,7 +148,7 @@ netspeed_preferences_finalize (GObject *object)
{
NetspeedPreferences *preferences = NETSPEED_PREFERENCES (object);
- free_devices_list (preferences->devices);
+ g_list_free_full (preferences->devices, g_free);
G_OBJECT_CLASS (netspeed_preferences_parent_class)->finalize (object);
}
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 72735263..3b28e988 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -630,7 +630,7 @@ search_for_up_if (NetspeedApplet *netspeed)
if (set_applet_devinfo (netspeed, tmp->data))
break;
}
- free_devices_list (devices);
+ g_list_free_full (devices, g_free);
}
static char *
@@ -1642,7 +1642,7 @@ netspeed_applet_factory (MatePanelApplet *applet,
}
ptr = g_list_next (ptr);
}
- free_devices_list (devices);
+ g_list_free_full (devices, g_free);
}
if (!netspeed->devinfo)
get_device_info ("lo", &netspeed->devinfo);