From 0e1791a497d6685d4705fc72d3a924be3b360eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Fri, 5 Apr 2024 13:39:41 +0200 Subject: [PATCH] Remove unused values --- DuckDuckGo/FavoritesOverlay.swift | 3 --- DuckDuckGo/FavoritesViewController.swift | 4 ---- 2 files changed, 7 deletions(-) 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