Skip to content

Commit 25a2b65

Browse files
committed
refactor(shared): remove AdService from FeedDecoratorService
- Remove AdService dependency from FeedDecoratorService - Remove unused import for AdService
1 parent f13ac57 commit 25a2b65

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/shared/services/feed_decorator_service.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,16 @@ class FeedDecoratorService {
9797
/// Creates a [FeedDecoratorService].
9898
///
9999
/// Requires [DataRepository] instances for [Topic] and [Source] to fetch
100-
/// content for collection decorators, and an [AdService] to inject ads.
100+
/// content for collection decorators.
101101
FeedDecoratorService({
102102
required DataRepository<Topic> topicsRepository,
103103
required DataRepository<Source> sourcesRepository,
104-
required AdService adService,
105104
}) : _topicsRepository = topicsRepository,
106-
_sourcesRepository = sourcesRepository,
107-
_adService = adService;
105+
_sourcesRepository = sourcesRepository;
108106

109107
final Uuid _uuid = const Uuid();
110108
final DataRepository<Topic> _topicsRepository;
111109
final DataRepository<Source> _sourcesRepository;
112-
final AdService _adService;
113110

114111
// The zero-based index in the feed where the decorator will be inserted.
115112
// A value of 3 places it after the third headline, which is a common

0 commit comments

Comments
 (0)