From 9d5b6bcc3e7873d7b76842e7a0bbaca047d11901 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 8 Jan 2021 10:03:03 +0100 Subject: netspeed: drop free_devices_list --- netspeed/src/backend.c | 6 ------ netspeed/src/backend.h | 3 --- netspeed/src/netspeed-preferences.c | 2 +- netspeed/src/netspeed.c | 4 ++-- 4 files changed, 3 insertions(+), 12 deletions(-) (limited to 'netspeed/src') 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 @@ -89,9 +89,6 @@ get_default_route (void); gboolean is_dummy_device (const char* device); -void -free_devices_list (GList *list); - void free_device_info (DevInfo *devinfo); 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); -- cgit v1.2.1