Skip to content

Commit

Permalink
Remove unnecessary return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bebehei committed Feb 20, 2018
1 parent 3b6c529 commit c4eb26e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/queues.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/queues.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4eb26e

Please sign in to comment.