diff --git a/DuckDuckGo/FavoritesOverlay.swift b/DuckDuckGo/FavoritesOverlay.swift index 1449fcdce5..a93f2cdd4f 100644 --- a/DuckDuckGo/FavoritesOverlay.swift +++ b/DuckDuckGo/FavoritesOverlay.swift @@ -40,8 +40,6 @@ class FavoritesOverlay: UIViewController { var collectionView: UICollectionView! private var renderer: FavoritesHomeViewSectionRenderer! private let appSettings: AppSettings - - private var theme: Theme! weak var delegate: FavoritesOverlayDelegate? @@ -176,7 +174,6 @@ extension FavoritesOverlay { private func decorate() { let theme = ThemeManager.shared.currentTheme - self.theme = theme view.backgroundColor = AppWidthObserver.shared.isLargeWidth ? .clear : theme.backgroundColor } diff --git a/DuckDuckGo/FavoritesViewController.swift b/DuckDuckGo/FavoritesViewController.swift index 5b7481627a..376710bc68 100644 --- a/DuckDuckGo/FavoritesViewController.swift +++ b/DuckDuckGo/FavoritesViewController.swift @@ -45,8 +45,6 @@ class FavoritesViewController: UIViewController { var collectionView: UICollectionView! private var renderer: FavoritesHomeViewSectionRenderer! - private var theme: Theme? - weak var delegate: FavoritesViewControllerDelegate? private let bookmarksDatabase: CoreDataDatabase @@ -90,7 +88,6 @@ class FavoritesViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() - theme = ThemeManager.shared.currentTheme collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout) @@ -289,7 +286,6 @@ extension FavoritesViewController { private func decorate() { let theme = ThemeManager.shared.currentTheme - self.theme = theme view.backgroundColor = theme.backgroundColor collectionView.backgroundColor = .clear emptyStateContainer.backgroundColor = .clear