network: drop unused slots
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Jul 2018 03:36:02 +0000 (12:36 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jul 2018 10:40:04 +0000 (12:40 +0200)
src/network/networkd-manager.c
src/network/networkd-manager.h

index 1c48660..8019d44 100644 (file)
@@ -160,7 +160,7 @@ int manager_connect_bus(Manager *m) {
 
         r = sd_bus_match_signal_async(
                         m->bus,
-                        &m->connected_slot,
+                        NULL,
                         "org.freedesktop.DBus.Local",
                         NULL,
                         "org.freedesktop.DBus.Local",
@@ -171,7 +171,7 @@ int manager_connect_bus(Manager *m) {
 
         r = sd_bus_match_signal_async(
                         m->bus,
-                        &m->prepare_for_sleep_slot,
+                        NULL,
                         "org.freedesktop.login1",
                         "/org/freedesktop/login1",
                         "org.freedesktop.login1.Manager",
@@ -1477,8 +1477,6 @@ void manager_free(Manager *m) {
         udev_unref(m->udev);
 
         sd_bus_unref(m->bus);
-        sd_bus_slot_unref(m->prepare_for_sleep_slot);
-        sd_bus_slot_unref(m->connected_slot);
 
         free(m->dynamic_timezone);
         free(m->dynamic_hostname);
index 9c16359..3543e58 100644 (file)
@@ -26,8 +26,6 @@ struct Manager {
         sd_event *event;
         sd_resolve *resolve;
         sd_bus *bus;
-        sd_bus_slot *prepare_for_sleep_slot;
-        sd_bus_slot *connected_slot;
         struct udev *udev;
         struct udev_monitor *udev_monitor;
         sd_event_source *udev_event_source;