summaryrefslogtreecommitdiff
path: root/netspeed
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-08 10:03:03 +0100
committerraveit65 <[email protected]>2021-01-28 21:17:38 +0100
commit9d5b6bcc3e7873d7b76842e7a0bbaca047d11901 (patch)
treefbb990579ec5f1602eae2cb29d35067c3ef4d5a2 /netspeed
parente1b88ba90318b464c9c435fc46b11e05fed617ba (diff)
downloadmate-applets-9d5b6bcc3e7873d7b76842e7a0bbaca047d11901.tar.bz2
mate-applets-9d5b6bcc3e7873d7b76842e7a0bbaca047d11901.tar.xz
netspeed: drop free_devices_list
Diffstat (limited to 'netspeed')
-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);