From c4eb26e3f5356fe9b7727c0183d07b8e3967d275 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Tue, 20 Feb 2018 17:05:55 +0100 Subject: [PATCH] Remove unnecessary return value --- src/queues.c | 8 +++----- src/queues.h | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/queues.c b/src/queues.c index 973cd1f68..aec51bcc2 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 68b8cd323..5636d0d8f 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