Remove unnecessary return value
This commit is contained in:
parent
3b6c5299be
commit
c4eb26e3f5
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user