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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user