From 01ca2a6de7f8078f2e67e2ef3fb8ee90064b4ab6 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 31 Aug 2017 13:58:33 +1000 Subject: [PATCH] ratbagd: drop the unused IsActive and IsDefault resolution signals Obsolete, now that we're just updating the property. Signed-off-by: Peter Hutterer --- ratbagd/ratbagd-resolution.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ratbagd/ratbagd-resolution.c b/ratbagd/ratbagd-resolution.c index 70b9d20e..9ba9bef7 100644 --- a/ratbagd/ratbagd-resolution.c +++ b/ratbagd/ratbagd-resolution.c @@ -82,18 +82,9 @@ ratbagd_resolution_set_report_rate(sd_bus *bus, static int ratbagd_resolution_active_signal_cb(sd_bus *bus, struct ratbagd_resolution *resolution) { - struct ratbag_resolution *lib_resolution = resolution->lib_resolution; - /* FIXME: we should cache is_active and only send the signal for * those resolutions where it changed */ - (void) sd_bus_emit_signal(bus, - resolution->path, - RATBAGD_NAME_ROOT ".Resolution", - "IsActive", - "b", - ratbag_resolution_is_active(lib_resolution)); - (void) sd_bus_emit_properties_changed(bus, resolution->path, RATBAGD_NAME_ROOT ".Resolution", @@ -124,18 +115,9 @@ static int ratbagd_resolution_set_active(sd_bus_message *m, static int ratbagd_resolution_default_signal_cb(sd_bus *bus, struct ratbagd_resolution *resolution) { - struct ratbag_resolution *lib_resolution = resolution->lib_resolution; - /* FIXME: we should cache is default and only send the signal for * those resolutions where it changed */ - (void) sd_bus_emit_signal(bus, - resolution->path, - RATBAGD_NAME_ROOT ".Resolution", - "IsDefault", - "b", - ratbag_resolution_is_default(lib_resolution)); - (void) sd_bus_emit_properties_changed(bus, resolution->path, RATBAGD_NAME_ROOT ".Resolution",