diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-30 09:21:49 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-30 22:21:49 +0800 |
commit | 2eb15f4a611393a4cbfcd91054f92ade302be62f (patch) | |
tree | cbc3c1b448d0fe0ec4db19bae480682559ba2272 /models/notification.go | |
parent | 77ab60df83c5fb60ef8d7c4fe63ac222e3670112 (diff) | |
download | gitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.tar.gz gitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.zip |
Unit tests and remove unused functions in models/notification (#796)
* Unit tests and remove unused functions in models/notification
* Read -> Unread
Diffstat (limited to 'models/notification.go')
-rw-r--r-- | models/notification.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/notification.go b/models/notification.go index 6e1a2fbf6c..7ef8f058ce 100644 --- a/models/notification.go +++ b/models/notification.go @@ -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) |