aboutsummaryrefslogtreecommitdiff
path: root/internal/storage/feed.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/storage/feed.go')
-rw-r--r--internal/storage/feed.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/internal/storage/feed.go b/internal/storage/feed.go
index b7f52e65..f365591e 100644
--- a/internal/storage/feed.go
+++ b/internal/storage/feed.go
@@ -87,17 +87,6 @@ func (s *Storage) CountAllFeeds() map[string]int64 {
return results
}
-// CountFeeds returns the number of feeds that belongs to the given user.
-func (s *Storage) CountFeeds(userID int64) int {
- var result int
- err := s.db.QueryRow(`SELECT count(*) FROM feeds WHERE user_id=$1`, userID).Scan(&result)
- if err != nil {
- return 0
- }
-
- return result
-}
-
// CountUserFeedsWithErrors returns the number of feeds with parsing errors that belong to the given user.
func (s *Storage) CountUserFeedsWithErrors(userID int64) int {
pollingParsingErrorLimit := config.Opts.PollingParsingErrorLimit()