diff --git a/src/queues.c b/src/queues.c index 973cd1f..aec51bc 100644 --- a/src/queues.c +++ b/src/queues.c @@ -179,7 +179,7 @@ bool queues_notification_replace_id(notification *new) return false; } -int queues_notification_close_id(int id, enum reason reason) +void queues_notification_close_id(int id, enum reason reason) { notification *target = NULL; @@ -210,14 +210,12 @@ int queues_notification_close_id(int id, enum reason reason) signal_notification_closed(target, reason); queues_history_push(target); } - - return reason; } -int queues_notification_close(notification *n, enum reason reason) +void queues_notification_close(notification *n, enum reason reason) { assert(n != NULL); - return queues_notification_close_id(n->id, reason); + queues_notification_close_id(n->id, reason); } void queues_history_pop(void) diff --git a/src/queues.h b/src/queues.h index 68b8cd3..5636d0d 100644 --- a/src/queues.h +++ b/src/queues.h @@ -60,14 +60,14 @@ bool queues_notification_replace_id(notification *new); * After closing, call wake_up to synchronize the queues with the UI * (which closes the notification on screen) */ -int queues_notification_close_id(int id, enum reason reason); +void queues_notification_close_id(int id, enum reason reason); /* Close the given notification. SEE queues_notification_close_id. * * @n: (transfer full): The notification to close * @reason: The reason to close * */ -int queues_notification_close(notification *n, enum reason reason); +void queues_notification_close(notification *n, enum reason reason); /* * Pushed the latest notification of history to the displayed queue