1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Unit tests and remove unused functions in models/notification (#796)

* Unit tests and remove unused functions in models/notification

* Read -> Unread
This commit is contained in:
Ethan Koenig
2017-01-30 09:21:49 -05:00
committed by Lunny Xiao
parent 77ab60df83
commit 2eb15f4a61
5 changed files with 108 additions and 11 deletions

View File

@@ -227,16 +227,6 @@ func (n *Notification) GetIssue() (*Issue, error) {
return n.Issue, err
}
// GetNotificationReadCount returns the notification read count for user
func GetNotificationReadCount(user *User) (int64, error) {
return GetNotificationCount(user, NotificationStatusRead)
}
// GetNotificationUnreadCount returns the notification unread count for user
func GetNotificationUnreadCount(user *User) (int64, error) {
return GetNotificationCount(user, NotificationStatusUnread)
}
// GetNotificationCount returns the notification count for user
func GetNotificationCount(user *User, status NotificationStatus) (int64, error) {
return getNotificationCount(x, user, status)