Skip to content

Commit 65e1dd5

Browse files
committed
style(ads): remove unnecessary comments in inline ad disposal methods
- Remove redundant comments in disposeInlineAd and disposeAllInlineAds methods - Keep code cleaner and focused on implementation details - Improve readability without losing important information
1 parent a9b0475 commit 65e1dd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ads/inline_ad_cache_service.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class InlineAdCacheService {
109109
final ad = _cache[id];
110110
if (ad != null) {
111111
_logger.info('Removing and disposing inline ad with ID "$id".');
112-
_adService.disposeAd(ad); // Delegate disposal to AdService
112+
_adService.disposeAd(ad);
113113
_cache.remove(id);
114114
} else {
115115
_logger.info('Inline ad with ID "$id" not found in cache for disposal.');
@@ -126,9 +126,9 @@ class InlineAdCacheService {
126126
'Clearing all cached inline ads and disposing their resources.',
127127
);
128128
for (final ad in _cache.values.whereType<InlineAd>()) {
129-
_adService.disposeAd(ad); // Delegate disposal to AdService
129+
_adService.disposeAd(ad);
130130
}
131-
_cache.clear(); // Ensure cache is empty after disposal attempts.
131+
_cache.clear();
132132
_logger.info('All cached inline ads cleared.');
133133
}
134134

0 commit comments

Comments
 (0)