refactor: remove unused continue watching getter

This commit is contained in:
2026-05-12 12:34:40 +02:00
parent 857bd85b4f
commit 211777815c

View File

@@ -136,20 +136,6 @@ func (s *Service) GetUserWatchlist(ctx context.Context, userID string) ([]db.Get
return entries, nil
}
// GetContinueWatching retrieves entries for continue watching section.
func (s *Service) GetContinueWatching(ctx context.Context, userID string) ([]db.GetContinueWatchingEntriesRow, error) {
if strings.TrimSpace(userID) == "" {
return nil, errors.New("invalid user id")
}
entries, err := s.db.GetContinueWatchingEntries(ctx, userID)
if err != nil {
return nil, fmt.Errorf("failed to fetch continue watching: %w", err)
}
return entries, nil
}
// DeleteContinueWatching removes entry and clears associated watch progress.
// uses transaction when sqlDB is available.
func (s *Service) DeleteContinueWatching(ctx context.Context, userID string, animeID int64) error {